[geany/geany] bbdf56: Haxe: Do not track preprocessor for styling

Colomban Wendling git-noreply at xxxxx
Tue Sep 6 09:35:11 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 06 Sep 2016 09:35:11 UTC
Commit:      bbdf56fc2e2c978de6a61c3be56dfeb5bc6963ef
             https://github.com/geany/geany/commit/bbdf56fc2e2c978de6a61c3be56dfeb5bc6963ef

Log Message:
-----------
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.


Modified Paths:
--------------
    data/filedefs/filetypes.haxe

Modified: data/filedefs/filetypes.haxe
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -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



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list