Menu

#1039 #if/#end syntax highlight in haxe files

v1.25
open
nobody
v1.22
2
2014-04-17
2014-04-17
Romain
No

Hi,

The #if/#end syntax highlight doesn't work in haxe files.

In a Main.hx, the code:

package ;
#if AAAA
#end            
class Main      <-- grey 
{
}

To solve it, I append in filetypes.haxe:

[lexer_properties]
styling.within.preprocessor=1
lexer.cpp.track.preprocessor=0
preprocessor.symbol.$(file.patterns.cpp)=#
preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef
preprocessor.middle.$(file.patterns.cpp)=else elif
preprocessor.end.$(file.patterns.cpp)=end

Discussion


Log in to post a comment.