misc/vim/syntax/factor.vim: highlight the shebang
parent
1ef928b508
commit
c9542b5a15
|
@ -38,6 +38,8 @@ syn cluster factorCluster contains=factorComment,factorFrySpecifier,factorKeywor
|
||||||
syn match factorTodo /\(TODO\|FIXME\|XXX\):\=/ contained
|
syn match factorTodo /\(TODO\|FIXME\|XXX\):\=/ contained
|
||||||
syn match factorComment /\<#!\>\s.*/ contains=factorTodo
|
syn match factorComment /\<#!\>\s.*/ contains=factorTodo
|
||||||
syn match factorComment /\<!\>\s.*/ contains=factorTodo
|
syn match factorComment /\<!\>\s.*/ contains=factorTodo
|
||||||
|
syn match factorShebang /\%\^#!\s.*/
|
||||||
|
syn match factorShebangErr /\%\^#!\S\+/
|
||||||
|
|
||||||
syn cluster factorDefnContents contains=@factorCluster,factorStackEffect,factorLiteralStackEffect,factorArray0,factorQuotation0
|
syn cluster factorDefnContents contains=@factorCluster,factorStackEffect,factorLiteralStackEffect,factorArray0,factorQuotation0
|
||||||
|
|
||||||
|
@ -205,6 +207,8 @@ if version >= 508 || !exists("did_factor_syn_inits")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HiLink factorComment Comment
|
HiLink factorComment Comment
|
||||||
|
HiLink factorShebang Special
|
||||||
|
HiLink factorShebangErr Error
|
||||||
HiLink factorStackEffect Typedef
|
HiLink factorStackEffect Typedef
|
||||||
HiLink factorLiteralStackEffect Typedef
|
HiLink factorLiteralStackEffect Typedef
|
||||||
HiLink factorTodo Todo
|
HiLink factorTodo Todo
|
||||||
|
|
|
@ -27,6 +27,8 @@ syn cluster factorCluster contains=factorComment,factorFrySpecifier,factorKeywor
|
||||||
syn match factorTodo /\(TODO\|FIXME\|XXX\):\=/ contained
|
syn match factorTodo /\(TODO\|FIXME\|XXX\):\=/ contained
|
||||||
syn match factorComment /\<#!\>\s.*/ contains=factorTodo
|
syn match factorComment /\<#!\>\s.*/ contains=factorTodo
|
||||||
syn match factorComment /\<!\>\s.*/ contains=factorTodo
|
syn match factorComment /\<!\>\s.*/ contains=factorTodo
|
||||||
|
syn match factorShebang /\%\^#!\s.*/
|
||||||
|
syn match factorShebangErr /\%\^#!\S\+/
|
||||||
|
|
||||||
syn cluster factorDefnContents contains=@factorCluster,factorStackEffect,factorLiteralStackEffect,factorArray0,factorQuotation0
|
syn cluster factorDefnContents contains=@factorCluster,factorStackEffect,factorLiteralStackEffect,factorArray0,factorQuotation0
|
||||||
|
|
||||||
|
@ -192,6 +194,8 @@ if version >= 508 || !exists("did_factor_syn_inits")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HiLink factorComment Comment
|
HiLink factorComment Comment
|
||||||
|
HiLink factorShebang Special
|
||||||
|
HiLink factorShebangErr Error
|
||||||
HiLink factorStackEffect Typedef
|
HiLink factorStackEffect Typedef
|
||||||
HiLink factorLiteralStackEffect Typedef
|
HiLink factorLiteralStackEffect Typedef
|
||||||
HiLink factorTodo Todo
|
HiLink factorTodo Todo
|
||||||
|
|
Loading…
Reference in New Issue