Skip to content

Commit

Permalink
highlight FIXME and XXX in addition to TODO
Browse files Browse the repository at this point in the history
credit
- ziglang#80
  • Loading branch information
atweiden committed Nov 19, 2022
1 parent ecb716c commit 4e10d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/zig.vim
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ syntax region zigCommentLineDoc start="//[/!]/\@!" end="$" contains=zigTodo,@Spe
syntax match zigMultilineStringPrefix /c\?\\\\/ contained containedin=zigMultilineString
syntax region zigMultilineString matchgroup=zigMultilineStringDelimiter start="c\?\\\\" end="$" contains=zigMultilineStringPrefix display

syntax keyword zigTodo contained TODO
syntax keyword zigTodo contained FIXME TODO XXX

syntax region zigString matchgroup=zigStringDelimiter start=+c\?"+ skip=+\\\\\|\\"+ end=+"+ oneline contains=zigEscape,zigEscapeUnicode,zigEscapeError,@Spell
syntax match zigEscapeError display contained /\\./
Expand Down

0 comments on commit 4e10d04

Please sign in to comment.