1
0
Fork 0

vim syntax: Add a few keywords

Add property methods 'addChild' and 'addChildren'.
Add boolean literals 'true' and 'false' (recently added to nasal).
This commit is contained in:
Colin Geniet 2023-03-23 17:03:35 +01:00 committed by James Turner
parent c3cf916af6
commit 4b3d49c480

View file

@ -43,6 +43,7 @@ syn match nasalNumber "-\=\<\d\+\>"
syn match nasalNumber "-\=\.\d\+\([eE][+-]\=\d\+\)\=\>" syn match nasalNumber "-\=\.\d\+\([eE][+-]\=\d\+\)\=\>"
syn match nasalNumber "-\=\<\d\+\.\=\([eE][+-]\=\d\+\)\=\>" syn match nasalNumber "-\=\<\d\+\.\=\([eE][+-]\=\d\+\)\=\>"
syn match nasalNumber "-\=\<\d\+\.\d\+\([eE][+-]\=\d\+\)\=\>" syn match nasalNumber "-\=\<\d\+\.\d\+\([eE][+-]\=\d\+\)\=\>"
syn keyword nasalNumber true false
syn keyword nasalStatement func return var syn keyword nasalStatement func return var
syn keyword nasalConditional if elsif else syn keyword nasalConditional if elsif else
@ -90,7 +91,7 @@ if !exists("nasal_no_fgfs")
syn keyword nasalPropsFunction getType getName getIndex getValue setValue setIntValue syn keyword nasalPropsFunction getType getName getIndex getValue setValue setIntValue
syn keyword nasalPropsFunction setBoolValue setDoubleValue getParent getChild getChildren syn keyword nasalPropsFunction setBoolValue setDoubleValue getParent getChild getChildren
syn keyword nasalPropsFunction getAttribute setAttribute alias unalias getAliasTarget clearValue syn keyword nasalPropsFunction getAttribute setAttribute alias unalias getAliasTarget clearValue
syn keyword nasalPropsFunction removeChild removeChildren getNode initNode syn keyword nasalPropsFunction removeChild removeChildren addChild addChildren getNode initNode
syn keyword nasalPropsFunction getPath getBoolValue setValues getValues syn keyword nasalPropsFunction getPath getBoolValue setValues getValues
syn match nasalPropsFunction "\<props\.\(_\?globals\|Node\|nodeList\|condition\)\>\.\=" syn match nasalPropsFunction "\<props\.\(_\?globals\|Node\|nodeList\|condition\)\>\.\="