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 Oct 7, 2023
1 parent 8042e89 commit 5e74a82
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 @@ -242,7 +242,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 5e74a82

Please sign in to comment.