Fix vim syntax highlighting for a regex ending with an escaped backslash

This commit is contained in:
Josh Holtrop 2025-07-20 11:52:21 -04:00
parent 8b38ea4261
commit 4ec57fa48d

View File

@ -22,7 +22,7 @@ syn match propaneFieldOperator ":" contained
syn match propaneOperator "?" syn match propaneOperator "?"
syn keyword propaneKeyword ast ast_prefix ast_suffix drop module prefix ptype start token tokenid syn keyword propaneKeyword ast ast_prefix ast_suffix drop module prefix ptype start token tokenid
syn region propaneRegex start="/" end="/" skip="\\/" syn region propaneRegex start="/" end="/" skip="\v\\\\|\\/"
hi def link propaneComment Comment hi def link propaneComment Comment
hi def link propaneKeyword Keyword hi def link propaneKeyword Keyword