Created
October 20, 2011 03:56
-
-
Save endeav0r/1300378 to your computer and use it in GitHub Desktop.
VIM Syntax Highlighting for hudson
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: Hudson | |
" Maintainer: Alex Eubanks <endeavor at rainbowsandpwnies dot com> | |
" Last Change: Oct 19 2011 | |
" Comments: Modified from lua.vim found in default arch repos 19 Oct 2011 | |
syntax clear | |
syn case match | |
" syncing method | |
syn sync minlines=100 | |
syn match hudComment "#.*$" contains=luaTodo,@Spell | |
syn match hudNumber "\<\d\+\>" | |
syn keyword hudError error | |
syn keyword hudOperator and or else "+" "-" "*" "/" "%" "=" "<" ">" "&" "|" ".." "->" "?" | |
syn keyword hudType Bool Function Int Null String variable constant | |
syn region hudString start=+"+ end=+"+ | |
syn region hudCond start=+if+ end=+then+ | |
syn region hudCond start=+while+ end=+do+ | |
syn keyword hudFunc append arrayBuilder compose filter foldl foldr format l length listBuilder map max min quote random readFile readInt readStr reverse reverseCompose stringify toArray toAscii toIterator toList toString | |
syn keyword hudKeyword assert class do else false for fun function if inherit in inout is not null or out procedure ref return suchthat then this true variable while | |
command -nargs=+ HiLink hi def link <args> | |
HiLink hudString String | |
HiLink hudNumber Number | |
HiLink hudOperator Operator | |
HiLink hudCond Conditional | |
HiLink hudFunction Function | |
HiLink hudComment Comment | |
HiLink hudError Error | |
HiLink hudFunction Function | |
HiLink hudKeyword Keyword | |
HiLink hudType Type | |
delcommand HiLink | |
let b:current_syntax = "hud" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment