Commit 6324f0ef authored by Martin Pépin's avatar Martin Pépin
Browse files

Colorizes functions

parent f0eb3e1e
......@@ -14,12 +14,16 @@ syntax match Error "\]"
syntax match Error "\*)"
" Functions
syntax match Function "[a-zA-Z][a-zA-Z0-9_]*[ \t\n]*\(<[^>]\+>\)\@="
syntax match Function "[a-zA-Z][a-zA-Z0-9_]*[ \t\n]*\(([^\*]\)\@="
" Static type parameters
syntax region Type start="<" end=">"
syntax match Type ":\[[^\]]\+\]"
" Builtin functions
syntax keyword Identifier mux and or xor not
syntax keyword Identifier mux and or xor not reg
" Builtin operators and symbols
syntax match Statement "\*"
......@@ -35,19 +39,19 @@ syntax match Statement "="
syntax match Number "\<\d\+\>"
" If statements
syntax region None matchgroup=Statement start="\<if\>" matchgroup=Statement end="\<end if\>" contains=ALLBUT,Identifier
syntax region None matchgroup=Statement start="\<if\>" matchgroup=Statement end="\<end if\>" contains=ALL
syntax keyword Statement then else
" Block definition
syntax region None matchgroup=Statement start="\<where\>" matchgroup=Statement end="\<end where\>" contains=ALLBUT,Identifier
syntax region None matchgroup=Statement start="\<where\>" matchgroup=Statement end="\<end where\>" contains=ALL
" Special highlight for require: not a Minijazz standard but used in our custom
" implementation
syntax match Include "^require"
" Brackets and co
syntax region None matchgroup=Keyword start="(" matchgroup=Keyword end=")" contains=ALLBUT,Identifier
syntax region None matchgroup=Keyword start="\[" matchgroup=Keyword end="\]" contains=ALLBUT,Identifier
syntax region None matchgroup=Keyword start="(" matchgroup=Keyword end=")" contains=ALL
syntax region None matchgroup=Keyword start="\[" matchgroup=Keyword end="\]" contains=ALL
" Constants
syntax keyword Constant false true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment