mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
Highlight tistis and hephep and recongize cenbar, etc. as constants.
This commit is contained in:
parent
977ca720b6
commit
89bb09d99e
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user