Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight more accurately #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions syntax/review.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ endif

syn case match

syn match reviewCaption1 "^=\s\+.\+"
syn match reviewCaption2 "^==\s\+.\+"
syn match reviewCaption3 "^===\s\+.\+"
syn match reviewCaption4 "^====\s\+.\+"
syn match reviewCaption1 "^=\({.*}\)\?\s\+.\+"
syn match reviewCaption2 "^==\({.*}\)\?\s\+.\+"
syn match reviewCaption3 "^===\({.*}\)\?\s\+.\+"
syn match reviewCaption4 "^====\({.*}\)\?\s\+.\+"
syn match reviewColumn "^=\+\[column\]\s\+.\+"
syn match reviewFootnote "^//footnote\[.*\]\[.*\]"

Expand All @@ -33,7 +33,7 @@ syn region reviewCmdCap start="^//cmd{" end="^//}"
syn region reviewQuote start="^//quote{" end="^//}"
syn region reviewImage start="^//image\[.*\]\[.*\]{" end="^//}"
syn region reviewTable start="^//table\[.*\]\[.*\]{" end="^//}"
syn match reviewRef "@<[a-z]\+>{.\{-\}}"
syn match reviewRef "@<[a-z]\+>{.\{-\}\\\@<!}"

syn match reviewComment "^#@#.*"
syn match reviewWarn "^#@warn(.*)"
Expand Down