Warning, /frameworks/syntax-highlighting/data/syntax/texinfo.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language>
0003 <language name="Texinfo" extensions="*.texi" section="Markup" mimetype="application/x-texinfo" author="Daniel Franke (franke.daniel@gmail.com)" license="LGPL" version="3" kateversion="5.0">
0004 
0005   <highlighting>
0006     <!--
0007       In TEXINFO, commands start with "@" optionally followed by a 
0008       command argument embraced by "{}", as in "@item" or "@emph{foo bar}".
0009 
0010       Some special commands embrace a region, e.g. "@menu" and "@end menu",
0011       these regions may be fold (beginRegion="foldingRegion").
0012 
0013       Nodes to NOT end with "@end node", but a "@node" ends at the beginning 
0014       of the next "@node".
0015       -->
0016     <contexts>
0017       <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
0018         <RegExpr attribute="Comment" context="singleLineComment" String="@c(?:omment)?\b" />
0019         <RegExpr attribute="Comment" context="multiLineComment" String="@ignore\b" beginRegion="ignore" />
0020         <RegExpr attribute="Command" context="nodeFolding" String="@node\b" beginRegion="node" />
0021 
0022         <RegExpr attribute="Command" context="folding" beginRegion="foldingRegion"
0023                  String="@(menu|smallexample|table|multitable)\b"/>
0024 
0025         <RegExpr attribute="Command" context="#stay" String="@[\w]+(\{([\w]+[\s]*)+\})?" />
0026       </context>
0027 
0028       <context name="singleLineComment" attribute="Comment" lineEndContext="#pop">
0029         <DetectSpaces />
0030         <IncludeRules context="##Comments" />
0031       </context>
0032 
0033       <context name="multiLineComment" attribute="Comment" lineEndContext="#stay">
0034         <DetectSpaces />
0035         <StringDetect attribute="Comment" context="#pop" String="@end ignore" endRegion="ignore" />
0036         <IncludeRules context="##Comments" />
0037       </context>
0038 
0039       <context name="nodeFolding" attribute="Normal Text" lineEndContext="#stay">
0040         <RegExpr attribute="Command" context="#pop" String="@node\b" endRegion="node" lookAhead="true" />
0041         <IncludeRules context="Normal Text" />
0042       </context>
0043 
0044       <context name="folding" attribute="Normal Text" lineEndContext="#stay">
0045         <RegExpr attribute="Command" context="#pop" endRegion="foldingRegion"
0046                  String="@end (menu|smallexample|table|multitable)\b" />
0047         <IncludeRules context="Normal Text" />
0048       </context>
0049     </contexts>
0050 
0051     <itemDatas>
0052       <itemData name="Normal Text" defStyleNum="dsNormal" />
0053       <itemData name="Comment" defStyleNum="dsComment" />
0054       <itemData name="Command" defStyleNum="dsFunction" />
0055     </itemDatas>
0056   </highlighting>
0057 
0058   <general>
0059     <comments>
0060       <comment name="singleLine" start="@c " />
0061       <comment name="multiLine" start="@ignore " end="@end ignore" region="ignore" />
0062     </comments>
0063   </general>
0064 
0065 </language>
0066 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->