aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-14 06:46:16 +0800
committerGitHub <noreply@github.com>2023-07-14 06:46:16 +0800
commitdbb840da01c72d8a311e0c55d3248d78a64b63a4 (patch)
tree36a381283d42f6e23d552c3ed8e06b03b9fed51b /runtime/syntax
parenta3f4598226c4d01e4fbc41181a1ad21793862fe3 (diff)
downloadrneovim-dbb840da01c72d8a311e0c55d3248d78a64b63a4.tar.gz
rneovim-dbb840da01c72d8a311e0c55d3248d78a64b63a4.tar.bz2
rneovim-dbb840da01c72d8a311e0c55d3248d78a64b63a4.zip
fix(runtime): respect 'rtp' order for all runtime files (#24335)
Diffstat (limited to 'runtime/syntax')
-rw-r--r--runtime/syntax/synload.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/synload.vim b/runtime/syntax/synload.vim
index 056e38bf79..80685a5213 100644
--- a/runtime/syntax/synload.vim
+++ b/runtime/syntax/synload.vim
@@ -48,8 +48,8 @@ fun! s:SynSet()
" load each in sequence. Skip empty entries.
for name in split(s, '\.')
if !empty(name)
- exe "runtime! syntax/" . name . ".vim syntax/" . name . "/*.vim"
- exe "runtime! syntax/" . name . ".lua syntax/" . name . "/*.lua"
+ " XXX: "[.]" in the first pattern makes it a wildcard on Windows
+ exe $'runtime! syntax/{name}[.]{{vim,lua}} syntax/{name}/*.{{vim,lua}}'
endif
endfor
endif