[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/syntax/data
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2010-10-10 9:53:41
Message-ID: 20101010095341.4F2AC3E1F2 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1184448 by cullmann:
Miquel Sabaté <mikisabate@gmail.com>:
GNU Assembler allows .S files to use C preprocessing directives. Therefore, \
directives #include, #define,... should be C-like highlighted
M +8 -2 gnuassembler.xml
--- trunk/KDE/kdelibs/kate/syntax/data/gnuassembler.xml #1184447:1184448
@@ -246,21 +246,27 @@
<HlCChar attribute="Char" context="#stay" />
<RegExpr attribute="Char" context="#stay" \
String="'(\\x[0-9a-fA-F][0-9a-fA-F]?|\\[0-7]?[0-7]?[0-7]?|\\.|.)" />
<DetectChar attribute="String" context="String" char=""" />
+ <RegExpr attribute="Preprocessor" context="Preprocessor" \
String="#\s*if(?:def|ndef)?(?=\s+\S)" insensitive="true" beginRegion="PP" \
firstNonSpace="true" /> + <RegExpr attribute="Preprocessor" \
context="Preprocessor" String="#\s*endif" insensitive="true" endRegion="PP" \
firstNonSpace="true" /> + <RegExpr attribute="Preprocessor" \
context="Define" String="#\s*define.*((?=\\))" insensitive="true" \
firstNonSpace="true" /> + <RegExpr attribute="Preprocessor" \
context="Preprocessor" \
String="#\s*(?:el(?:se|if)|include(?:_next)?|define|undef|line|error|warning|pragma)" \
insensitive="true" firstNonSpace="true" />
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="*" \
/>
<AnyChar attribute="Comment" context="Commentar 2" String="@;#" />
<AnyChar attribute="Symbol" context="#stay" \
String="!#%&*()+,-<=>?/:[]^{|}~" />
- <RegExpr attribute="Preprocessor" context="Preprocessor" String="^#" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 1">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 2" />
- <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor" />
<context attribute="String" lineEndContext="#pop" name="String">
<LineContinue attribute="String" context="Some Context" />
<HlCStringChar attribute="String Char" context="#stay" />
<DetectChar attribute="String" context="#pop" char=""" />
</context>
+ <context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor" />
+ <context attribute="Preprocessor" lineEndContext="#pop" name="Define">
+ <LineContinue attribute="Preprocessor" context="#stay"/>
+ </context>
<context attribute="Normal Text" lineEndContext="#pop" name="Some Context" />
</contexts>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic