diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-25 09:55:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 09:55:59 +0800 |
commit | 0cdeb06db0062951f2f2d2998510e2fff7e0faee (patch) | |
tree | 9742e89b2e7c5e520d74f7067d185db840200375 /src | |
parent | b4b4cf46a7a2b6d7b4e997179166444b0e338ac8 (diff) | |
download | rneovim-0cdeb06db0062951f2f2d2998510e2fff7e0faee.tar.gz rneovim-0cdeb06db0062951f2f2d2998510e2fff7e0faee.tar.bz2 rneovim-0cdeb06db0062951f2f2d2998510e2fff7e0faee.zip |
vim-patch:ddbb6fe: runtime(vim): Update base-syntax, improve :set highlighting (#29850)
- Match bang, "all" and "termcap" options, and trailing command
separator "|".
- Highlight set assignment operators.
- Match multiline :set and multiline option values.
- Mention the newer "0o" octal prefix at :help :set=.
closes: vim/vim#15329
https://github.com/vim/vim/commit/ddbb6fe2d0344e93436c5602b7a06169f49a9b52
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/generators/gen_vimvim.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/generators/gen_vimvim.lua b/src/nvim/generators/gen_vimvim.lua index fcdc5bddc2..0675f04b73 100644 --- a/src/nvim/generators/gen_vimvim.lua +++ b/src/nvim/generators/gen_vimvim.lua @@ -80,12 +80,13 @@ for _, cmd_desc in ipairs(ex_cmds.cmds) do end local vimopt_start = 'syn keyword vimOption contained ' +local vimopt_end = ' skipwhite nextgroup=vimSetEqual,vimSetMod' w('\n\n' .. vimopt_start) for _, opt_desc in ipairs(options.options) do if not opt_desc.immutable then if lld.line_length > 850 then - w('\n' .. vimopt_start) + w(vimopt_end .. '\n' .. vimopt_start) end w(' ' .. opt_desc.full_name) if opt_desc.abbreviation then @@ -102,7 +103,9 @@ for _, opt_desc in ipairs(options.options) do end end -w('\n\nsyn case ignore') +w(vimopt_end .. '\n') + +w('\nsyn case ignore') local vimau_start = 'syn keyword vimAutoEvent contained ' w('\n\n' .. vimau_start) |