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

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language
0003           [
0004           <!ENTITY stringVariable   "[a-zA-Z0-9\-]+">
0005           <!ENTITY fieldFormat          "[a-zA-Z0-9\-_\.]+">
0006           <!ENTITY latexCmd             "\\([a-zA-Z@]+|[^ ])">
0007           <!ENTITY refKeyFormat         "[a-zA-Z0-9_@\\-\\:]+"> <!--taken from kile 2.0.3-->
0008           ]>
0009 <language name="BibTeX" version="5" kateversion="5.0" extensions="*.bib" section="Markup" mimetype="text/x-bib" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Thomas Braun (thomas.braun@virtuell-zuhause.de)" license="LGPL">
0010   <highlighting>
0011     <list name="kw_entry">
0012       <item>@article</item> 
0013       <item>@book</item> 
0014       <item>@booklet</item> 
0015       <item>@conference</item> 
0016       <item>@collection</item>
0017       <item>@electronic</item>
0018       <item>@inbook</item> 
0019       <item>@incollection</item> 
0020       <item>@inproceedings</item> 
0021       <item>@manual</item> 
0022       <item>@mastersthesis</item> 
0023       <item>@misc</item>
0024       <item>@online</item>
0025       <item>@patent</item>
0026       <item>@periodical</item>
0027       <item>@proceedings</item>
0028       <item>@report</item>
0029       <item>@phdthesis</item>
0030       <item>@set</item>
0031       <item>@thesis</item> 
0032       <item>@techreport</item> 
0033       <item>@unpublished</item>
0034       <item>@www</item>
0035       <item>@person</item> <!--all three from the directory package-->
0036       <item>@company</item>
0037       <item>@place</item>
0038     </list>
0039     <contexts>
0040       <context name="Normal" attribute="Comment" lineEndContext="#stay">
0041         <keyword String="kw_entry" attribute="Entry" context="Entry"/>
0042         <StringDetect String="@string" attribute="Command" insensitive="true" context="StringCommand"/>
0043         <StringDetect String="@preamble" attribute="Command" insensitive="true" context="PreambleCommand"/>
0044         <StringDetect String="@comment" attribute="Comment" insensitive="true" context="#stay"/> <!--nothing special needed here-->
0045     </context>
0046 
0047         <context name="PreambleCommand" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#stay" >
0048                 <DetectChar char="{" context="CurlyBracket" />
0049         </context>
0050         
0051         <context name="StringCommand" attribute="Normal Text" fallthrough="true" fallthroughContext="#pop" lineEndContext="#stay" >
0052                 <DetectChar char="{" context="CurlyBracket" />
0053                 <RegExpr String="&stringVariable;" attribute="String" context="CurlyBracket"/>
0054       </context>
0055 
0056       <context name="Entry" attribute="Normal Text" lineEndContext="#stay">
0057               <DetectChar char="{"  context="#stay" beginRegion="block" />
0058               <RegExpr String="&refKeyFormat;" attribute="Ref Key" context="#stay"/>
0059               <DetectChar char="," context="Field"/>
0060               <DetectChar char="}" attribute="Normal Text" context="#pop" endRegion="block" />
0061       </context>
0062 
0063       <context name="Field" attribute="Normal Text" lineEndContext="#stay">
0064           <RegExpr String="&fieldFormat;" attribute="Field" firstNonSpace="true"/>
0065               <DetectSpaces/>
0066               <DetectChar char="=" context="#stay"/>
0067               <DetectChar char="{" context="CurlyBracket"/>
0068               <DetectChar char="}" context="#pop" lookAhead="true"/>
0069               <DetectChar char="&quot;"  attribute="Normal Text" context="QuotedText"/>
0070               <AnyChar String=",#" context="#stay"/> <!-- # is the bibtex string concatenate character -->
0071           <RegExpr String="[0-9]+" context="#stay"/>
0072           <RegExpr String="&stringVariable;" attribute="String" /> <!-- assume this is a variable created with @String -->
0073               <RegExpr String="." attribute="Error" context="#stay"/> <!--this rule catches all errors-->
0074       </context>
0075 
0076       <context name="CurlyBracket" attribute="Normal Text" lineEndContext="#stay">
0077               <DetectChar char="{" context="CurlyBracket"/>
0078               <RegExpr String="&latexCmd;" attribute="LatexCommand" context="#stay"/>
0079               <LineContinue char="}" context="#pop#pop"/>
0080               <DetectChar char="}" context="#pop"/>
0081       </context>
0082 
0083       <context name="QuotedText" attribute="String" lineEndContext="#stay">
0084               <DetectChar char="&quot;" attribute="Normal Text" context="#pop"/>
0085               <RegExpr String="&latexCmd;" attribute="LatexCommand" context="#stay"/>
0086       </context>
0087 
0088     </contexts>
0089 
0090     <itemDatas>
0091       <itemData name="Normal Text" defStyleNum="dsNormal"/>
0092       <itemData name="Entry" defStyleNum="dsVariable" spellChecking="false"/>
0093       <itemData name="Command" defStyleNum="dsFunction" spellChecking="false"/>
0094       <itemData name="Field" defStyleNum="dsDataType" spellChecking="false"/>
0095       <itemData name="Ref Key" defStyleNum="dsOthers" spellChecking="false"/>
0096       <itemData name="LatexCommand" defStyleNum="dsChar" spellChecking="false"/>
0097       <itemData name="Comment" defStyleNum="dsComment" spellChecking="false"/>
0098       <itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
0099       <itemData name="String" defStyleNum="dsString" spellChecking="true"/>
0100 </itemDatas>
0101   </highlighting>
0102   <general>
0103    <keywords casesensitive="0" weakDeliminator="\" wordWrapDeliminator=",{}[]"/>
0104   </general>
0105 </language>