From bbdf56fc2e2c978de6a61c3be56dfeb5bc6963ef Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 6 Sep 2016 11:31:57 +0200 Subject: [PATCH] Haxe: Do not track preprocessor for styling We don't set the styles for inactive preprocessor sections, so we should make sure they aren't used. Also, Haxe has different preprocessor directives than C does, which confuses LexCPP tracking anyway. Fixes #936. --- data/filedefs/filetypes.haxe | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/filedefs/filetypes.haxe b/data/filedefs/filetypes.haxe index d4300944..e27c6b11 100644 --- a/data/filedefs/filetypes.haxe +++ b/data/filedefs/filetypes.haxe @@ -7,6 +7,10 @@ primary=abstract break case catch class const continue trace do else enum extend secondary=Bool Dynamic Float Int null Void Enum String classes=Array ArrayAccess Class Date DateTools EReg Hash IntHash IntIter Iterable Iterator Lambda List Math Null Protected Reflect Std StringBuf StringTools Type UInt ValueType Xml XmlType +[lexer_properties] +# Haxe preprocessor has different directive than C, which the C lexer doesn't understand, so +# we explicitly need not track the preprocessor at all. +lexer.cpp.track.preprocessor=0 [settings] # default extension used when saving files