Browse Source

Update stuff.

master
Thomas Kerber 2 years ago
parent
commit
325cc266dc
Signed by: Thomas Kerber <tk@drwx.org> GPG Key ID: 8489B911F9ED617B
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      syntax/nyx.vim

+ 7
- 5
syntax/nyx.vim View File

@@ -8,21 +8,23 @@ if exists("b:current_syntax")
finish
endif

syn keyword nyxKeyword while public private state if else offline return
syn keyword nyxConstant true false
syn keyword nyxBuiltinType int bool array string hash set merkletree public_key keypair
syn keyword nyxBuiltinFunction log assert
syn keyword nyxKeyword while public private if else offline return for in struct enum
syn keyword nyxConstant true false state txval cval
syn keyword nyxBuiltinType int bool array string hash set merkletree public_key keypair value
syn keyword nyxBuiltinFunction log assert reveal payout

hi def link nyxKeyword Keyword
hi def link nyxConstant Constant
hi def link nyxBuiltinType Type
hi def link nyxBuiltinFunction Function
hi def link nyxBuiltinFunction Keyword

syn match nyxOperator /\(!\||\|&\|+\|-\|<\|>\|=\|%\|\/\|*\|\~\|\^\)/
syn match nyxSeperator /:/
syn match nyxNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/
syn region nyxString start=+"+ skip=+\\\\\|\\$"+ end=+"+

hi def link nyxOperator Operator
hi def link nyxSeperator Delimiter
hi def link nyxNumber Number
hi def link nyxString String


Loading…
Cancel
Save