Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions syntax/wake.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,29 @@ elseif exists("b:current_syntax")
endif

setlocal iskeyword+=:
syn keyword basickeyword with public new return if else while foreach in import provides needs then nothing var exists true false foreach in from
syn region classdecl start="every" end="is:" contains=inheritancekeyword,interfacekeyword,ancestrysymbols,withinregionkeyword transparent keepend
syn keyword basickeyword with public private new return if else while for in import provides needs then nothing var exists true false foreach in from continue module do at break
syn region classdecl start="every" end=":" contains=inheritancekeyword,interfacekeyword,ancestrysymbols,withinregionkeyword transparent keepend
syn match fulltextident "\~\[[^\]]\+\]\~"
syn match hashcomment "#\<[a-zA-Z]\+\>\?"
syn region blockcomment start="#>" end="##"
syn match blockcomment "##"
syn keyword inheritancekeyword a an contained
syn keyword interfacekeyword capable
syn keyword mytype Num Bool Text Char
syn keyword mytype Num Bool Text Char Int
syn match alias "\<[a-z][a-zA-Z0-9]*\>"
syn match withinregionkeyword "\(every\|is:\)"
syn match shadow "\$"
syn match returntype "\(\<[a-zA-Z][a-zA-Z0-9]*\>\s\+\)\?--"
syn match functioncall "\<[a-zA-Z][a-zA-Z0-0]+\>(" contained
syn match methodstart "\<[a-zA-Z][a-zA-Z0-9]*\>("
syn match methodseg "\<)[a-zA-Z][a-zA-Z0-9]*\>("
syn match symbols "\((\|)\|;\||\|=\|+\|{\|}\|,\|\.\|<\|>\|\-\|\*\|\/\|:\)"
syn match symbols "\((\|)\|;\||\|=\|+\|{\|}\|,\|\.\|<\|>\|\-\|\*\|\/\|:\|^\|%\|&\|\~\)"
syn match ancestrysymbols "\((\|)\|,\)" contained
syn match typesymbols "\(\[\|\]\)"
syn match currysymbols "???"
syn region mystring start=/"/ skip=/\\\\\|\\"/ end=/"/
syn region mystring2 start=/'/ skip=/\\\\\|\\'/ end=/'/
syn match mychar "\\\(.\|[0-9]{1,3}\)"
syn region mystring start=/"/ skip=/\\\\\|\\"/ end=/"s\?/
syn region mystring2 start=/'/ skip=/\\\\\|\\'/ end=/'s\?/
syn match specialty ":[a-zA-Z0-9]\+"
syn region comment start="\/\/" end="$"
syn match comment "`[^`]*`"
Expand Down Expand Up @@ -69,6 +70,7 @@ hi link methodseg Special
hi link methodstart Special
hi link functioncall String
hi link mystring2 String
hi link mychar String
hi link mystring String
hi link specialty Special

Expand Down