misc: fix syntax highlighting for new escape codes.
parent
5bc1567c05
commit
a4aa9a9688
|
@ -1,5 +1,5 @@
|
|||
<%
|
||||
USING: io kernel multiline prettyprint sequences sorting vocabs ;
|
||||
USING: accessors io kernel multiline prettyprint sequences sorting vocabs ;
|
||||
IN: factor.vim.fgen
|
||||
|
||||
: print-keywords ( vocab -- )
|
||||
|
@ -151,7 +151,7 @@ syn cluster factorWordOps contains=factorConstant,factorAlias,factorSingle
|
|||
" LIBRARY:
|
||||
"#\ "
|
||||
|
||||
syn match factorEscape /\\\([\\astnr0e\"]\|u\x\{6}\|u{\S\+}\|x\x\{2}\)/ contained display
|
||||
syn match factorEscape /\\\([\\astnrbvf0e\"]\|u\x\{6}\|u{\S\+}\|x\x\{2}\)/ contained display
|
||||
syn region factorString start=/\<"/ skip=/\\"/ end=/"/ contains=factorEscape
|
||||
syn region factorTriString start=/\<"""/ skip=/\\"/ end=/"""/ contains=factorEscape
|
||||
syn region factorSbuf start=/\<[-a-zA-Z0-9]\+"\>/ skip=/\\"/ end=/"/
|
||||
|
|
|
@ -139,7 +139,7 @@ syn cluster factorWordOps contains=factorConstant,factorAlias,factorSingle
|
|||
" LIBRARY:
|
||||
"#\ "
|
||||
|
||||
syn match factorEscape /\\\([\\astnr0e\"]\|u\x\{6}\|u{\S\+}\|x\x\{2}\)/ contained display
|
||||
syn match factorEscape /\\\([\\astnrbvf0e\"]\|u\x\{6}\|u{\S\+}\|x\x\{2}\)/ contained display
|
||||
syn region factorString start=/\<"/ skip=/\\"/ end=/"/ contains=factorEscape
|
||||
syn region factorTriString start=/\<"""/ skip=/\\"/ end=/"""/ contains=factorEscape
|
||||
syn region factorSbuf start=/\<[-a-zA-Z0-9]\+"\>/ skip=/\\"/ end=/"/
|
||||
|
|
Loading…
Reference in New Issue