CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 09:42:05 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neovim/neovim.git
etag: W/"1807fb43bc274a93cc9d9d296989159c"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=UnNCTVAtLKhFTl3pbBUt7AhIw61tBEGJnPjqOLKoS6N%2FBv%2FsGZ0peSJIVDlGWPjZQqEC7yI72zV24Hq7QX1GbwY%2FvYD3uXe8sHoRddG%2FJcv3EZ7neyL%2FUvbA8G4MEcTbDa0qaf%2BcQUmWeN5aCupomXoWraFimNxaCPOMe3kL%2BEMnLutjmQoIoig5vzYZ9wcj1QTRiCfUAJ9Ne4eRMcxOorU4zxmgy75WkVqUDUawNGDNz6lCbBcjWR4GLmqtRSK4B82XVFILztoP8fylN39dJQ%3D%3D--aKAJ3l0sGU1og1Wo--v6LNDzOOg%2BUM1dN68TxCeg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1004293683.1753782124; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 09:42:04 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 09:42:04 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B70E:319329:7BF8C5:979E36:6888976C
feat(:source, nvim_exec): support script-local variables · neovim/neovim@d4ed51e · GitHub


committed
Copy file name to clipboardExpand all lines: test/functional/api/vim_spec.lua
Copy file name to clipboardExpand all lines: test/functional/ex_cmds/source_spec.lua
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit d4ed51e
feat(:source, nvim_exec): support script-local variables
Based on #13143 (and #11507) with changes:
- Omit script_type_E. Use sn_name == NULL to determine anon items.
- Keep SID_STR. Used by anon :source for .lua files (no item).
- Show SID in get_scriptname output (:verbose set).
- Factor item creation into new_script_item.
- Leave sc_seq = 0 (anon scripts don't re-use the same item when re-sourced).
- Add tests for anon :source.
Co-authored-by: Vikram Pal <vikrampal659@gmail.com>
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>1 parent 6b9cb66 commit d4ed51eCopy full SHA for d4ed51e
File tree
Expand file treeCollapse file tree
4 files changed
+75
-24
lines changedFilter options
- src/nvim
- test/functional
- api
- ex_cmds
Expand file treeCollapse file tree
4 files changed
+75
-24
lines changed+36-20Lines changed: 36 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1939 | 1939 |
| |
1940 | 1940 |
| |
1941 | 1941 |
| |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
1942 | 1965 |
| |
1943 | 1966 |
| |
1944 | 1967 |
| |
| |||
1955 | 1978 |
| |
1956 | 1979 |
| |
1957 | 1980 |
| |
1958 |
| - | |
| 1981 | + | |
1959 | 1982 |
| |
1960 | 1983 |
| |
1961 | 1984 |
| |
| |||
2036 | 2059 |
| |
2037 | 2060 |
| |
2038 | 2061 |
| |
2039 |
| - | |
2040 | 2062 |
| |
2041 | 2063 |
| |
2042 | 2064 |
| |
| |||
2183 | 2205 |
| |
2184 | 2206 |
| |
2185 | 2207 |
| |
2186 |
| - | |
2187 |
| - | |
2188 |
| - | |
2189 |
| - | |
2190 |
| - | |
2191 |
| - | |
2192 |
| - | |
2193 |
| - | |
2194 |
| - | |
| 2208 | + | |
2195 | 2209 |
| |
2196 | 2210 |
| |
2197 | 2211 |
| |
2198 | 2212 |
| |
2199 | 2213 |
| |
2200 | 2214 |
| |
2201 | 2215 |
| |
2202 |
| - | |
2203 |
| - | |
2204 |
| - | |
2205 | 2216 |
| |
2206 | 2217 |
| |
2207 | 2218 |
| |
| |||
2375 | 2386 |
| |
2376 | 2387 |
| |
2377 | 2388 |
| |
2378 |
| - | |
2379 |
| - | |
2380 |
| - | |
| 2389 | + | |
2381 | 2390 |
| |
2382 | 2391 |
| |
2383 | 2392 |
| |
2384 |
| - | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
2385 | 2401 |
| |
2386 |
| - | |
2387 |
| - | |
| 2402 | + | |
| 2403 | + | |
2388 | 2404 |
| |
2389 | 2405 |
| |
2390 | 2406 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
335 | 335 |
| |
336 | 336 |
| |
337 | 337 |
| |
338 |
| - | |
| 338 | + | |
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
|
test/functional/api/vim_spec.lua
Copy file name to clipboardExpand all lines: test/functional/api/vim_spec.lua+24-1Lines changed: 24 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
135 | 158 |
| |
136 | 159 |
| |
137 | 160 |
| |
|
test/functional/ex_cmds/source_spec.lua
Copy file name to clipboardExpand all lines: test/functional/ex_cmds/source_spec.lua+14-2Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
32 | 34 |
| |
| 35 | + | |
33 | 36 |
| |
34 | 37 |
| |
35 | 38 |
| |
| |||
43 | 46 |
| |
44 | 47 |
| |
45 | 48 |
| |
46 |
| - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 |
| |
48 | 55 |
| |
49 | 56 |
| |
| |||
55 | 62 |
| |
56 | 63 |
| |
57 | 64 |
| |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
58 | 70 |
| |
59 | 71 |
| |
60 | 72 |
| |
|
You can’t perform that action at this time.
0 commit comments