Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/yacc.xml
Show All 26 Lines | |||||
27 | 27 | | |||
28 | 2004-05-26 // Jan Villat <jan.villat@net2000.ch> | 28 | 2004-05-26 // Jan Villat <jan.villat@net2000.ch> | ||
29 | 29 | | |||
30 | YACC.XML 1.00 - First released. | 30 | YACC.XML 1.00 - First released. | ||
31 | 31 | | |||
32 | 32 | | |||
33 | ======================================================================== | 33 | ======================================================================== | ||
34 | --> | 34 | --> | ||
35 | <language name="Yacc/Bison" version="4" kateversion="2.4" section="Sources" extensions="*.y;*.yy;*.ypp;*.y++" mimetype="text/x-yacc;text/x-bison" priority="5" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL"> | 35 | <language name="Yacc/Bison" version="5" kateversion="5.0" section="Sources" extensions="*.y;*.yy;*.ypp;*.y++" mimetype="text/x-yacc;text/x-bison" priority="5" author="Jan Villat (jan.villat@net2000.ch)" license="LGPL"> | ||
36 | 36 | | |||
37 | <highlighting> | 37 | <highlighting> | ||
38 | <contexts> | 38 | <contexts> | ||
39 | <context name="Pre Start" attribute="Normal Text" lineEndContext="#stay"> | 39 | <context name="Pre Start" attribute="Normal Text" lineEndContext="#stay"> | ||
40 | <IncludeRules context="Comment" /> | 40 | <IncludeRules context="Comment" /> | ||
41 | <DetectSpaces /> | 41 | <DetectSpaces /> | ||
42 | <Detect2Chars attribute="Content-Type Delimiter" context="C Declarations" char="%" char1="{" beginRegion="cdeclarations" column="0" /> | 42 | <Detect2Chars attribute="Content-Type Delimiter" context="C Declarations" char="%" char1="{" beginRegion="cdeclarations" column="0" /> | ||
43 | <RegExpr attribute="Normal Text" context="Declarations" String="." beginRegion="declarations" lookAhead="true" /> | 43 | <RegExpr attribute="Normal Text" context="Declarations" String="." beginRegion="declarations" lookAhead="true" /> | ||
▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | |||||
195 | </context> | 195 | </context> | ||
196 | 196 | | |||
197 | <context name="Comment" attribute="Comment" lineEndContext="#stay"> | 197 | <context name="Comment" attribute="Comment" lineEndContext="#stay"> | ||
198 | <Detect2Chars attribute="Comment" context="CommentStar" char="/" char1="*" /> | 198 | <Detect2Chars attribute="Comment" context="CommentStar" char="/" char1="*" /> | ||
199 | <Detect2Chars attribute="Comment" context="CommentSlash" char="/" char1="/" /> | 199 | <Detect2Chars attribute="Comment" context="CommentSlash" char="/" char1="/" /> | ||
200 | </context> | 200 | </context> | ||
201 | <context name="CommentStar" attribute="Comment" lineEndContext="#stay"> | 201 | <context name="CommentStar" attribute="Comment" lineEndContext="#stay"> | ||
202 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" /> | 202 | <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" /> | ||
203 | <IncludeRules context="##Alerts" /> | ||||
204 | <IncludeRules context="##Modelines" /> | ||||
203 | </context> | 205 | </context> | ||
204 | <context name="CommentSlash" attribute="Comment" lineEndContext="#stay"> | 206 | <context name="CommentSlash" attribute="Comment" lineEndContext="#pop"> | ||
205 | <RegExpr attribute="Comment" context="#pop" String="[^\\]$" /> | 207 | <IncludeRules context="##Alerts" /> | ||
208 | <IncludeRules context="##Modelines" /> | ||||
206 | </context> | 209 | </context> | ||
207 | 210 | | |||
208 | <context name="StringOrChar" attribute="Normal Text" lineEndContext="#stay"> | 211 | <context name="StringOrChar" attribute="Normal Text" lineEndContext="#stay"> | ||
209 | <DetectChar attribute="String Char" context="Char" char="'" /> | 212 | <DetectChar attribute="String Char" context="Char" char="'" /> | ||
210 | <DetectChar attribute="String" context="String" char=""" /> | 213 | <DetectChar attribute="String" context="String" char=""" /> | ||
211 | </context> | 214 | </context> | ||
212 | <context name="String" attribute="String" lineEndContext="#pop"> | 215 | <context name="String" attribute="String" lineEndContext="#pop"> | ||
213 | <RegExpr attribute="Backslash Code" context="#stay" String="\\." /> | 216 | <RegExpr attribute="Backslash Code" context="#stay" String="\\." /> | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |