Skip to content

Commit

Permalink
Avoid highlighting comments in strings (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysxia authored Apr 17, 2024
1 parent 0694dbe commit f2dba4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
(PR #339)

### Fixed
- Don't highlight comments inside strings.
(PR #352)
- Highlight `edestruct` correctly.
(PR #346)
- Highlight `generalize dependent` correctly.
Expand Down
2 changes: 1 addition & 1 deletion syntax/coq.vim
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ syn match elpiMode contained "\<[io]:"
syn match elpiNumber contained "[0-9]\+"

" Various (High priority)
syn region coqComment containedin=ALL contains=coqComment,coqTodo,@Spell start="(\*" end="\*)" extend keepend
syn region coqComment containedin=ALLBUT,coqString contains=coqComment,coqTodo,@Spell start="(\*" end="\*)" extend keepend
syn keyword coqTodo contained TODO FIXME XXX NOTE
syn region coqString start=+"+ skip=+""+ end=+"+ extend

Expand Down

0 comments on commit f2dba4d

Please sign in to comment.