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

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language
0003 [
0004         <!-- names must start with a letter, ideogram or underscore. \w matches any
0005                  word character *or* a number, hence the lookahead -->
0006         <!ENTITY name    "(?![0-9])[\w_:][\w.:_-]*">
0007         <!ENTITY entref  "&amp;(?:#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
0008 ]>
0009 <language name="XML" version="20" kateversion="5.0" section="Markup" extensions="*.page;*.docbook;*.xml;*ui.rc;*.daml;*.rdf;*.rss;*.xspf;*.xsd;*.svg;*.ui;*.kcfg;*.qrc;*.wsdl;*.scxml;*.xbel;*.dae;*.sch;*.brd" mimetype="text/xml;text/book;text/daml;text/rdf;application/rss+xml;application/xspf+xml;image/svg+xml;application/x-designer;application/x-xbel;application/xml;application/scxml+xml;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.presentation-flat-xml;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/gpx+xml" casesensitive="1" indenter="xml" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
0010 
0011 <highlighting>
0012 <contexts>
0013   <context name="Start" attribute="Normal Text" lineEndContext="#stay">
0014     <IncludeRules context="FindXML" />
0015   </context>
0016 
0017   <context name="FindXML" attribute="Normal Text" lineEndContext="#stay">
0018     <DetectSpaces />
0019     <DetectIdentifier />
0020     <RegExpr attribute="Element Symbols" context="ElementTagName" String="&lt;(?=(&name;))" beginRegion="element" />
0021     <StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
0022     <StringDetect attribute="CDATA" context="CDATAStart" String="&lt;![CDATA[" lookAhead="true" />
0023     <RegExpr attribute="Doctype Symbols" context="DoctypeTagName" String="&lt;!(?=DOCTYPE(\s|$))" beginRegion="doctype" />
0024     <IncludeRules context="FindProcessingInstruction" />
0025     <IncludeRules context="FindEntityRefs" />
0026   </context>
0027 
0028   <context name="FindEntityRefs" attribute="Other Text" lineEndContext="#stay">
0029     <RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
0030     <AnyChar attribute="Error" context="#stay" String="&amp;&lt;" />
0031   </context>
0032 
0033   <context name="FindPEntityRefs" attribute="Other Text" lineEndContext="#stay">
0034     <RegExpr attribute="EntityRef" context="#stay" String="&entref;" />
0035     <RegExpr attribute="PEntityRef" context="#stay" String="%&name;;" />
0036     <AnyChar attribute="Error" context="#stay" String="&amp;%&lt;" />
0037   </context>
0038 
0039 
0040   <context name="Comment" attribute="Comment" lineEndContext="#stay">
0041     <DetectSpaces />
0042     <StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="comment" />
0043     <RegExpr attribute="Error" context="#stay" String="-(?:\-(?!-&gt;))+" />
0044     <IncludeRules context="##Comments" />
0045     <DetectIdentifier />
0046   </context>
0047 
0048   <context name="CDATAStart" attribute="Other Text" lineEndContext="#pop">
0049     <StringDetect attribute="CDATA Symbols" context="#stay" String="&lt;![" beginRegion="cdata" />
0050     <StringDetect attribute="CDATA" context="#stay" String="CDATA" />
0051     <DetectChar attribute="CDATA Symbols" context="#pop!CDATA" char="[" />
0052   </context>
0053   <context name="CDATA" attribute="Other Text" lineEndContext="#stay">
0054     <DetectSpaces />
0055     <DetectIdentifier />
0056     <StringDetect attribute="CDATA Symbols" context="#pop" String="]]&gt;" endRegion="cdata" />
0057     <StringDetect attribute="EntityRef" context="#stay" String="]]&amp;gt;" />
0058   </context>
0059 
0060   <context name="FindProcessingInstruction" attribute="Other Text" lineEndContext="#stay">
0061     <RegExpr attribute="PI Symbols" context="PI TagName" String="&lt;\?(?=([\w:_-]*))" beginRegion="pi" />
0062   </context>
0063   <context name="PI TagName" attribute="Other Text" lineEndContext="#pop!PI" fallthrough="true" fallthroughContext="#pop!PI">
0064     <RegExpr attribute="Processing Instruction" context="#pop!PI-XML" String="xml(?=\s|$)" insensitive="true" />
0065     <StringDetect attribute="Processing Instruction" context="#pop!PI" String="%1" dynamic="true" />
0066   </context>
0067   <context name="PI" attribute="Other Text" lineEndContext="#stay">
0068     <Detect2Chars attribute="PI Symbols" context="#pop" char="?" char1="&gt;" endRegion="pi" />
0069   </context>
0070   <context name="PI-XML" attribute="Other Text" lineEndContext="#stay">
0071     <IncludeRules context="PI" />
0072     <RegExpr attribute="Attribute" context="#stay" String="(?:^|\s+)&name;" />
0073     <DetectChar attribute="Attribute Separator" context="Value" char="=" />
0074   </context>
0075 
0076   <context name="DoctypeTagName" attribute="Other Text" lineEndContext="#pop">
0077     <StringDetect attribute="Doctype" context="#pop!DoctypeVariableName" String="DOCTYPE" />
0078   </context>
0079   <context name="DoctypeVariableName" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Doctype">
0080     <DetectSpaces />
0081     <RegExpr attribute="Doctype Name" context="#pop!Doctype" String="&name;" />
0082   </context>
0083   <context name="Doctype" attribute="Other Text" lineEndContext="#stay">
0084     <DetectChar attribute="Doctype Symbols" context="#pop" char="&gt;" endRegion="doctype" />
0085     <DetectChar attribute="Doctype Symbols" context="Doctype Internal Subset" char="[" beginRegion="int_subset" />
0086   </context>
0087 
0088   <context name="Doctype Internal Subset" attribute="Other Text" lineEndContext="#stay">
0089     <DetectSpaces />
0090     <DetectChar attribute="Doctype Symbols" context="#pop" char="]" endRegion="int_subset" />
0091     <RegExpr attribute="Doctype Symbols" context="Doctype Markupdecl TagName" String="&lt;!(?=(ELEMENT|ENTITY|ATTLIST|NOTATION)\b)" />
0092     <StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="comment" />
0093     <IncludeRules context="FindProcessingInstruction" />
0094     <IncludeRules context="FindPEntityRefs" />
0095   </context>
0096 
0097   <context name="Doctype Markupdecl TagName" attribute="Other Text" lineEndContext="#pop">
0098     <DetectIdentifier attribute="Doctype" context="#pop!Doctype Markupdecl VariableName" />
0099   </context>
0100   <context name="Doctype Markupdecl VariableName" attribute="Other Text" lineEndContext="#pop!Doctype Markupdecl" fallthrough="true" fallthroughContext="#pop!Doctype Markupdecl">
0101     <DetectSpaces />
0102     <RegExpr attribute="Doctype Name" context="#pop!Doctype Markupdecl" String="&name;" />
0103   </context>
0104   <context name="Doctype Markupdecl" attribute="Other Text" lineEndContext="#stay">
0105     <DetectChar attribute="Doctype Symbols" context="#pop" char="&gt;" />
0106     <DetectChar attribute="Value" context="Doctype Markupdecl DQ" char="&quot;" />
0107     <DetectChar attribute="Value" context="Doctype Markupdecl SQ" char="&apos;" />
0108   </context>
0109 
0110   <context name="Doctype Markupdecl DQ" attribute="Value" lineEndContext="#stay">
0111     <DetectChar attribute="Value" context="#pop" char="&quot;" />
0112     <IncludeRules context="FindPEntityRefs" />
0113   </context>
0114 
0115   <context name="Doctype Markupdecl SQ" attribute="Value" lineEndContext="#stay">
0116     <DetectChar attribute="Value" context="#pop" char="&apos;" />
0117     <IncludeRules context="FindPEntityRefs" />
0118   </context>
0119 
0120   <context name="ElementTagName" attribute="Other Text" lineEndContext="#pop!Element">
0121     <StringDetect attribute="Element" context="#pop!Element" String="%1" dynamic="true" />
0122   </context>
0123   <context name="Element" attribute="Other Text" lineEndContext="#stay">
0124     <Detect2Chars attribute="Element Symbols" context="#pop" char="/" char1="&gt;" endRegion="element" />
0125     <DetectChar attribute="Element Symbols" context="El Content" char="&gt;" />
0126     <RegExpr attribute="Attribute" context="Attribute" String="(?:^|\s+)&name;" />
0127     <RegExpr attribute="Error" context="#stay" String="\S" />
0128   </context>
0129 
0130   <context name="El Content" attribute="Other Text" lineEndContext="#stay">
0131     <RegExpr attribute="Element Symbols" context="El End TagName" String="&lt;/(?=(&name;))" />
0132     <IncludeRules context="FindXML" />
0133   </context>
0134 
0135   <context name="El End TagName" attribute="Other Text" lineEndContext="#pop!El End">
0136     <StringDetect attribute="Element" context="#pop!El End" String="%1" dynamic="true" />
0137   </context>
0138   <context name="El End" attribute="Other Text" lineEndContext="#stay">
0139     <DetectChar attribute="Element Symbols" context="#pop#pop#pop" char="&gt;" endRegion="element" />
0140     <RegExpr attribute="Error" context="#stay" String="\S" />
0141   </context>
0142 
0143   <context name="Attribute" attribute="Other Text" lineEndContext="#stay">
0144     <DetectChar attribute="Attribute Separator" context="#pop!Value" char="=" />
0145     <RegExpr attribute="Error" context="#stay" String="\S" />
0146   </context>
0147 
0148   <context name="Value" attribute="Other Text" lineEndContext="#stay">
0149     <DetectChar attribute="Value" context="Value DQ" char="&quot;" />
0150     <DetectChar attribute="Value" context="Value SQ" char="&apos;" />
0151     <RegExpr attribute="Error" context="#stay" String="\S" />
0152   </context>
0153 
0154   <context name="Value DQ" attribute="Value" lineEndContext="#stay">
0155     <DetectChar attribute="Value" context="#pop#pop" char="&quot;" />
0156     <IncludeRules context="FindEntityRefs" />
0157   </context>
0158 
0159   <context name="Value SQ" attribute="Value" lineEndContext="#stay">
0160     <DetectChar attribute="Value" context="#pop#pop" char="&apos;" />
0161     <IncludeRules context="FindEntityRefs" />
0162   </context>
0163 
0164 </contexts>
0165 <itemDatas>
0166   <itemData name="Normal Text"     defStyleNum="dsNormal" />
0167   <itemData name="Other Text"      defStyleNum="dsNormal" />
0168   <itemData name="Comment"         defStyleNum="dsComment" spellChecking="true" />
0169   <itemData name="CDATA"           defStyleNum="dsBaseN"    bold="1" italic="0" spellChecking="false" />
0170   <itemData name="CDATA Symbols"   defStyleNum="dsBaseN"    bold="0" italic="0" spellChecking="false" />
0171   <itemData name="Processing Instruction" defStyleNum="dsFunction" bold="1" italic="0" spellChecking="false" />
0172   <itemData name="PI Symbols"      defStyleNum="dsFunction" bold="0" italic="0" spellChecking="false" />
0173   <itemData name="Doctype"         defStyleNum="dsDataType" bold="1" italic="0" spellChecking="false" />
0174   <itemData name="Doctype Name"    defStyleNum="dsDataType" bold="0" italic="0" spellChecking="false" />
0175   <itemData name="Doctype Symbols" defStyleNum="dsDataType" bold="0" italic="0" spellChecking="false" />
0176   <itemData name="Element"         defStyleNum="dsKeyword" spellChecking="false" />
0177   <itemData name="Element Symbols" defStyleNum="dsNormal" spellChecking="false" />
0178   <itemData name="Attribute"       defStyleNum="dsOthers" spellChecking="false" />
0179   <itemData name="Attribute Separator" defStyleNum="dsOthers" spellChecking="false" />
0180   <itemData name="Value"           defStyleNum="dsString" spellChecking="false" />
0181   <itemData name="EntityRef"       defStyleNum="dsDecVal" spellChecking="false" />
0182   <itemData name="PEntityRef"      defStyleNum="dsDecVal" spellChecking="false" />
0183   <itemData name="Error"           defStyleNum="dsError" spellChecking="false" />
0184 </itemDatas>
0185 
0186 </highlighting>
0187 <general>
0188   <comments>
0189     <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
0190   </comments>
0191 </general>
0192 </language>
0193 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->