spl/spl.vim

16 lines
516 B
VimL
Raw Permalink Normal View History

2023-02-25 11:42:45 +01:00
if exists("b:current_syntax")
finish
endif
syn match Comment /".*?";/
syn match Number /\<[0-9._]*\>/
syn match Function /\<func[ \n]\+[^ ]\+[ \n]\+{ .*[ ]*|\|{ .*[ ]*|\|{\|}/
2023-03-06 14:56:49 +01:00
syn keyword Keyword while if exit eq lt gt neg or and not + - * ++ -- % / with namespace catch use
2023-02-25 11:42:45 +01:00
syn match Keyword /;/
syn keyword Type pop dup swap
syn match Type /=[a-zA-Z0-9_\-]\+\|\<_[a-zA-Z0-9_\-]\+\>/
syn match Identifier /[a-zA-Z0-9_\-]\+:\|\<this\>/
syn match String /"[^"]*"/
syn match Typedef /\<def[ \n]\+[^ ]*\|construct/