Hi ,
I am using avalon text editor and I have defined rules in schema definition file that defines my language syntax.
Everything works fine but I have one problem,
in my language ';' (semicolon) is both a line delimeter (end of statement) and also is the beginning of a single line comment
For ex all these are valid statements and are highlighted correctly through my rules:
local qw temp;
;this is a comment
local qw temp2; this is also a comment
Now I want comments to be highlighted in Green , so I have defined a span with begin as ';' which works fine ,
but the problem occurs in a FOR loop statement (FOR is a keyword and that is highlighted correctly)
FOR($BYTE = 5 ; $BYTE < 9 ;$BYTE = ( $BYTE ) )
here I do not want my comment span rule to be applied , so basically I want to exempt FOR and PRINTF statements from this span
How do I do that ?