[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-2/kile/kile/syntax
From: Jeroen Wijnhout <wijnhout () science ! uva ! nl>
Date: 2003-11-21 16:35:02
[Download RAW message or body]
CVS commit by wijnhout:
make verbatim* envs highlight correctly
M +6 -2 latex-kile.xml 1.12
--- kdeextragear-2/kile/kile/syntax/latex-kile.xml #1.11:1.12
@@ -44,5 +44,6 @@
</context>
<context name="ContrSeq" attribute="Keyword" \
lineEndContext="#pop">
- <RegExpr String="verb" attribute="Keyword" \
context="Verb"/> + <StringDetect String="verb*" \
attribute="Keyword" context="Verb"/> + <StringDetect \
String="verb" attribute="Keyword" context="Verb"/>
<RegExpr String="[a-zA-Z]+" attribute="Keyword" \
context="#pop"/>
<RegExpr String="[^a-zA-Z]" attribute="Keyword" \
context="#pop" /> @@ -73,12 +74,15 @@
</context>
<context name="VerbatimEnv" attribute="Environment" \
lineEndContext="#stay"> + <DetectChar char="*" \
attribute="Normal Text" context="#stay"/>
<DetectChar char="}" attribute="Normal Text" \
context="Verbatim"/>
<RegExpr String="[^\s]" attribute="Normal Text" \
context="#pop"/> </context>
<context name="Verbatim" attribute="Verbatim" \
lineEndContext="#stay">
- <RegExpr String="\\end(?=\{verbatim\})" \
attribute="Structure" context="VerbFindEnd"/> + \
<RegExpr String="\\end(?=\{verbatim\*\})" attribute="Structure" \
context="VerbFindEnd"/> + <RegExpr \
String="\\end(?=\{verbatim\})" attribute="Structure" context="VerbFindEnd"/> \
</context>
<context name="VerbFindEnd" attribute="Normal Text" \
lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<DetectChar char="{" attribute="Normal Text" \
context="#stay"/> + <StringDetect String="verbatim*" \
attribute="Environment" context="#stay"/>
<StringDetect String="verbatim" \
attribute="Environment" context="#stay"/>
<DetectChar char="}" attribute="Normal Text" \
context="#pop#pop#pop#pop#pop"/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic