Highlight tistis and hephep and recongize cenbar, etc. as constants.

This commit is contained in:
Philip Monk 2013-10-01 11:23:06 -07:00
parent 977ca720b6
commit 89bb09d99e

View File

@ -25,24 +25,8 @@ hi def link hoonComment Comment
hi def link hoonTodo Todo hi def link hoonTodo Todo
hi def link hoonString String hi def link hoonString String
" match monographs
" Not quite working at the moment. I think these are the only important
" monographs (just from playing around witht the interpreter), but I'm not
" sure.
" syn match hoonRune "[^%]\zs|"
" syn match hoonRune "[^%]\zs\$"
" syn match hoonRune "[^%]\zs/"
" syn match hoonRune "[^%]\zs\^"
" syn match hoonRune "[^%]\zs+"
" syn match hoonRune "[^%]\zs-"
" syn match hoonRune "[^%]\zs&"
" syn match hoonRune "[^%]\zs\~"
" syn match hoonRune "[^%]\zs\*"
" syn match hoonRune "[^%]\zs?"
syn match hoonDeclaration "++" nextgroup=hoonSymbolDec skipwhite syn match hoonDeclaration "++" nextgroup=hoonSymbolDec skipwhite
syn match hoonSymbol /%\w*/ syn match hoonSymbol /%\%(\%(\%(\w\|-\)\+\)\|[|&$]\)/
syn match hoonAtom /@\w*/ syn match hoonAtom /@\w*/
syn match hoonName "\w*" contained syn match hoonName "\w*" contained
syn match hoonSymbolDec "\w*" contained contains=hoonName syn match hoonSymbolDec "\w*" contained contains=hoonName
@ -178,5 +162,9 @@ syn match hoonRune "!\^"
syn match hoonRune "!>" syn match hoonRune "!>"
syn match hoonRune "!=" syn match hoonRune "!="
" Not technically runes, but we highlight them like that.
syn match hoonRune "\%([^a-zA-Z]\|^\)\zs=="
syn match hoonRune "--"
let b:current_syntax = "hoon" let b:current_syntax = "hoon"