omadawn / njord

Java iRule Editor
2 stars 1 forks source link

Highlight variables that have been declared #41

Closed omadawn closed 12 years ago

omadawn commented 12 years ago

This might get pushed back to 1.0 but I think it's going to be reasonably simple.

At minimum I should be able to highlight Rules based on the fact that they all start with a $. enhancement

I probably shouldn't do the dynamic thing described here at all.

See this forum post here: http://fifesoft.com/forum/viewtopic.php?f=11&t=693

But the short answer is update the document listener so that we check for variables defined with 'set ' then add all the instances of to a list of variables and update the key words list on our syntax scheme to highlight those.

I will probably need to figure out a good way to do it so we aren't parsing the entire document every time someone adds or deletes a letter. I can start that way but it will probably be pretty slow.

omadawn commented 12 years ago

Accidentally closed

omadawn commented 12 years ago

Added highlighting for variables based on the fact that they start with a $.