aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/json5.vim
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-03-09 14:57:57 -0700
committerJosh Rahm <joshuarahm@gmail.com>2024-03-09 14:57:57 -0700
commitc324271b99eee4c621463f368914d57cd729bd9c (patch)
tree5d979d333a2d5f9c080991d5482fd5916f8579c6 /runtime/syntax/json5.vim
parent931bffbda3668ddc609fc1da8f9eb576b170aa52 (diff)
parentade1b12f49c3b3914c74847d791eb90ea90b56b7 (diff)
downloadrneovim-c324271b99eee4c621463f368914d57cd729bd9c.tar.gz
rneovim-c324271b99eee4c621463f368914d57cd729bd9c.tar.bz2
rneovim-c324271b99eee4c621463f368914d57cd729bd9c.zip
Merge remote-tracking branch 'upstream/master' into userreg
Diffstat (limited to 'runtime/syntax/json5.vim')
-rw-r--r--runtime/syntax/json5.vim9
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'