]> git.mxchange.org Git - flightgear.git/commitdiff
nasal.vim: add getAliasTarget clearValue, values, io.flush
authormfranz <mfranz>
Sun, 15 Feb 2009 18:03:20 +0000 (18:03 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 15 Feb 2009 23:56:44 +0000 (00:56 +0100)
scripts/syntax/nasal.vim

index 03137dc5f7a1ccb69944e454ceeb54c17fd00a14..f106ce4a049bf4ae6693657dd1afad54006cec3e 100644 (file)
@@ -63,7 +63,7 @@ syn match   nasalFunction             "\<math\.\(sin\|cos\|exp\|ln\|sqrt\|atan2\)\>"
 syn match   nasalConstant              "\<math\.\(e\|pi\)\>"
 
 " io lib
-syn match   nasalFunction              "\<io\.\(close\|read\|write\|seek\|tell\|open\|readln\|stat\)\>"
+syn match   nasalFunction              "\<io\.\(close\|read\|write\|seek\|tell\|flush\|open\|readln\|stat\)\>"
 syn match   nasalVar                   "\<io\.\(SEEK_SET\|SEEK_CUR\|SEEK_END\|stdin\|stdout\|stderr\)\>"
 
 " bits lib
@@ -85,11 +85,11 @@ if !exists("nasal_no_fgfs")
        syn keyword nasalFGFSFunction           geodtocart carttogeod geodinfo parsexml airportinfo abort
 
        syn keyword nasalGlobalsFunction        isa fgcommand cmdarg abs interpolate setlistener defined printlog
-       syn keyword nasalGlobalsFunction        thisfunc printf
+       syn keyword nasalGlobalsFunction        thisfunc printf values
 
        syn keyword nasalPropsFunction          getType getName getIndex getValue setValue setIntValue
        syn keyword nasalPropsFunction          setBoolValue setDoubleValue getParent getChild getChildren
-       syn keyword nasalPropsFunction          getAttribute setAttribute alias unalias
+       syn keyword nasalPropsFunction          getAttribute setAttribute alias unalias getAliasTarget clearValue
        syn keyword nasalPropsFunction          removeChild removeChildren getNode initNode
        syn keyword nasalPropsFunction          getPath getBoolValue setValues getValues
        syn match   nasalPropsFunction          "\<props\.\(_\?globals\|Node\|nodeList\|condition\)\>\.\="