misc/vim/syntax/factor.vim: highlight the shebang

Keita Haga 2011-03-17 05:18:58 +09:00
parent 0874f70164
commit 4a78fa0d27
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,8 @@ syn cluster factorCluster contains=factorComment,factorFrySpecifier,factorKeywor
syn match factorTodo /\(TODO\|FIXME\|XXX\):\=/ contained
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
@ -205,6 +207,8 @@ if version >= 508 || !exists("did_factor_syn_inits")
endif
HiLink factorComment Comment
HiLink factorShebang Special
HiLink factorShebangErr Error
HiLink factorStackEffect Typedef
HiLink factorLiteralStackEffect Typedef
HiLink factorTodo Todo

View File

@ -27,6 +27,8 @@ syn cluster factorCluster contains=factorComment,factorFrySpecifier,factorKeywor
syn match factorTodo /\(TODO\|FIXME\|XXX\):\=/ contained
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
@ -192,6 +194,8 @@ if version >= 508 || !exists("did_factor_syn_inits")
endif
HiLink factorComment Comment
HiLink factorShebang Special
HiLink factorShebangErr Error
HiLink factorStackEffect Typedef
HiLink factorLiteralStackEffect Typedef
HiLink factorTodo Todo