Script for modifying document syntax file
Posted: 28 Jan 2009 17:57
Hi,
Is there any way using scripts to modify the syntax file for a document?
Basically what I'd like to be able to do is run a script to "compile" the code I'm working on, except instead of really compiling I'd just like to be able to identify any variable declarations and what type they are, and have it so autocomplete works using the variable's name.
For example, say I have a variable jon of type fizz with a method buzz, so in my syntax file I'd already have defined what a buzz's autocomplete looks like, so can I apply buzz's autocomplete to jon?
Thanks.
Jon
Is there any way using scripts to modify the syntax file for a document?
Basically what I'd like to be able to do is run a script to "compile" the code I'm working on, except instead of really compiling I'd just like to be able to identify any variable declarations and what type they are, and have it so autocomplete works using the variable's name.
For example, say I have a variable jon of type fizz with a method buzz, so in my syntax file I'd already have defined what a buzz's autocomplete looks like, so can I apply buzz's autocomplete to jon?
Thanks.
Jon