diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-12-21 16:45:52 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-12-22 01:07:50 +0100 |
commit | 1a230d77fe1c744fb69452d05783a85de56160d2 (patch) | |
tree | 78e40333d211af25e850d8e99c3a8474bf575c0d | |
parent | af93a74a0f4afa9a3a4f55ffdf28141eaf776d22 (diff) | |
download | rneovim-1a230d77fe1c744fb69452d05783a85de56160d2.tar.gz rneovim-1a230d77fe1c744fb69452d05783a85de56160d2.tar.bz2 rneovim-1a230d77fe1c744fb69452d05783a85de56160d2.zip |
vim-patch:cc944b145254
runtime(json5): Add TODO support to syntax script (vim/vim#13743)
https://github.com/vim/vim/commit/cc944b1452547145cdd947a37c75fce695d8571e
Co-authored-by: Danek Duvall <duvall@comfychair.org>
-rw-r--r-- | runtime/syntax/json5.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/syntax/json5.vim b/runtime/syntax/json5.vim index 5b01d33aad..dc0d11b2a1 100644 --- a/runtime/syntax/json5.vim +++ b/runtime/syntax/json5.vim @@ -49,9 +49,11 @@ syn match json5Key /@\?\%(\I\|\$\)\%(\i\|\$\)*\s*\ze::\@!/ contains=@Spell syn match json5Key /"\([^"]\|\\"\)\{-}"\ze\s*:/ contains=json5Escape,@Spell " Comment -syn region json5LineComment start=+\/\/+ end=+$+ keepend contains=@Spell -syn region json5LineComment start=+^\s*\/\/+ skip=+\n\s*\/\/+ end=+$+ keepend fold contains=@Spell -syn region json5Comment start="/\*" end="\*/" fold contains=@Spell +syn region json5LineComment start=+\/\/+ end=+$+ keepend contains=@Spell,json5Todo +syn region json5LineComment start=+^\s*\/\/+ skip=+\n\s*\/\/+ end=+$+ keepend fold contains=@Spell,json5Todo +syn region json5Comment start="/\*" end="\*/" fold contains=@Spell,json5Todo + +syn keyword json5Todo contained TODO FIXME XXX " Define the default highlighting hi def link json5String String @@ -66,6 +68,7 @@ hi def link json5Boolean Boolean hi def link json5LineComment Comment hi def link json5Comment Comment hi def link json5NumError Error +hi def link json5Todo Todo if !exists('b:current_syntax') let b:current_syntax = 'json5' |