summaryrefslogtreecommitdiffstats
path: root/kate/data/yacc.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/yacc.xml')
-rw-r--r--kate/data/yacc.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/kate/data/yacc.xml b/kate/data/yacc.xml
index 438bfd8fe..41b83d141 100644
--- a/kate/data/yacc.xml
+++ b/kate/data/yacc.xml
@@ -25,7 +25,7 @@ This code is released under the LGPL as part of tdelibs/kate.
========================================================================
-->
-<language name="Yacc/Bison" version="1.03-1" kateversion="2.4" section="Sources" extensions="*.y;*.yy" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL">
+<language name="Yacc/Bison" version="1.04-1" kateversion="2.4" section="Sources" extensions="*.y;*.yy" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL">
<highlighting>
<contexts>
@@ -100,7 +100,7 @@ This code is released under the LGPL as part of tdelibs/kate.
<DetectChar attribute="Data Type" context="#pop" char="&gt;" />
</context>
- <context name="Comment" attribute="Comment">
+ <context name="Comment" attribute="Comment" lineEndContext="#stay">
<Detect2Chars attribute="Comment" context="CommentStar" char="/" char1="*" />
<!-- not sure that strict yacc allows that ... but I saw it in some sources ... -->
<Detect2Chars attribute="Comment" context="CommentSlash" char="/" char1="/" />
@@ -112,7 +112,7 @@ This code is released under the LGPL as part of tdelibs/kate.
<RegExpr attribute="Comment" context="#pop" String="[^\\]$" />
</context>
- <context name="StringOrChar" attribute="NormalText">
+ <context name="StringOrChar" attribute="NormalText" lineEndContext="#stay">
<DetectChar attribute="String Char" context="Char" char="'" />
<DetectChar attribute="String" context="String" char="&quot;" />
</context>
@@ -131,10 +131,10 @@ This code is released under the LGPL as part of tdelibs/kate.
<IncludeRules context="##C++" />
<DetectChar attribute="Directive" context="Dol" char="$" />
</context>
- <context name="Dol" attribute="Normal Text" fallthrough="true" fallthroughContext="DolEnd">
+ <context name="Dol" attribute="Normal Text" fallthrough="true" fallthroughContext="DolEnd" lineEndContext="#stay">
<RegExpr attribute="Data Type" context="DolEnd" String="&lt;[^&gt;]+&gt;" />
</context>
- <context name="DolEnd" attribute="Normal Text">
+ <context name="DolEnd" attribute="Normal Text" lineEndContext="#stay">
<RegExpr attribute="Directive" context="#pop#pop" String="\d+" />
<DetectChar attribute="Directive" context="#pop#pop" char="$" />
</context>