[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: [PATCH] Syntax/makefile: Match comment pattern before all else
From: Orgad Shaneh <orgads () gmail ! com>
Date: 2014-01-29 10:04:47
Message-ID: 1390989887-4228-1-git-send-email-orgads () gmail ! com
[Download RAW message or body]
Otherwise the following line is highlighted as a rule:
#file.o: file.cpp
---
part/syntax/data/makefile.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/part/syntax/data/makefile.xml b/part/syntax/data/makefile.xml
index dc39c46..c6f1124 100644
--- a/part/syntax/data/makefile.xml
+++ b/part/syntax/data/makefile.xml
@@ -64,6 +64,7 @@
<contexts>
<context name="normal" attribute="Normal" lineEndContext="#stay">
<DetectSpaces/>
+ <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<RegExpr attribute="Variable" context="assign" String="[^\s:+?]*\s*(?=:=|=|\+=|\?=)"/>
<RegExpr attribute="Section" context="prereq" String="^[.].*:"/>
@@ -75,7 +76,6 @@
<Detect2Chars attribute="Special" context="#stay" char="\" char1="#"/>
<Detect2Chars attribute="Special" context="#stay" char="\" char1="\"/>
<AnyChar attribute="Operator" context="silent" String="@-" firstNonSpace="1"/>
- <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
</context>
<context name="prereq" attribute="Prereq" lineEndContext="rule">
--
1.8.5.3
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic