Warning, /frameworks/syntax-highlighting/data/syntax/git-ignore.xml is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <!DOCTYPE language [ 0003 <!ENTITY charclasses "(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit)"> 0004 ]> 0005 <language name="Git Ignore" version="4" kateversion="5.62" section="Configuration" extensions=".gitignore*;" mimetype="text/x-git-ignore" license="LGPL"> 0006 <highlighting> 0007 <contexts> 0008 0009 <context name="ini" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="Exclude"> 0010 <DetectChar char="#" attribute="Comment" context="Comment"/> 0011 <DetectChar char="!" attribute="Include - Prefix" context="Include"/> 0012 </context> 0013 0014 <context name="Comment" attribute="Comment" lineEndContext="#pop"> 0015 </context> 0016 0017 0018 <context name="Include" attribute="Include" lineEndContext="#pop"> 0019 <AnyChar attribute="Include - Glob" String="?*"/> 0020 <DetectChar char="/" attribute="Include - Directory Separator"/> 0021 <DetectChar char="[" attribute="Include - Glob Range" context="IncludeGlobRange"/> 0022 <DetectChar char="\" attribute="Include - Escape" context="IncludeEscaped"/> 0023 <RegExpr attribute="Include" String="[^[?*\\/]+"/> 0024 </context> 0025 <context name="IncludeEscaped" attribute="Include" lineEndContext="#pop#pop"> 0026 <RegExpr attribute="Include" String="." context="#pop"/> 0027 </context> 0028 0029 <context name="IncludeGlobRange" attribute="Include - Glob Range" lineEndContext="#pop#pop" fallthroughContext="IncludeGlobRangeListStart"> 0030 <AnyChar String="^!" attribute="Include - Glob Range" context="IncludeGlobRangeListStart"/> 0031 </context> 0032 <context name="IncludeGlobRangeListStart" attribute="Include - Glob Range" lineEndContext="#pop#pop" fallthroughContext="#pop!IncludeGlobRangeList"> 0033 <DetectChar char="]" attribute="Include - Glob Inner Range" context="#pop!IncludeGlobRangeList"/> 0034 </context> 0035 0036 <context name="IncludeGlobRangeList" attribute="Include - Glob Inner Range" lineEndContext="#pop#pop" fallthroughContext="IncludeGlobRangeListSpecial"> 0037 <RegExpr attribute="Include - Glob Inner Range" String="([^[\\\]]+|\[(?!(:&charclasses;:|\.[a-z-]\.|=[a-z]=)\]))++" context="IncludeGlobRangeListSpecial"/> 0038 </context> 0039 0040 <context name="IncludeGlobRangeListSpecial" attribute="Include - Glob Inner Range" lineEndContext="#pop#pop#pop"> 0041 <DetectChar char="]" attribute="Include - Glob Range" context="#pop#pop#pop"/> 0042 <DetectChar char="\" attribute="Include - Escape" context="IncludeGlobRangeEscape"/> 0043 <DetectChar char="[" attribute="Include - Character Class" context="IncludeGlobRangeCharClass"/> 0044 </context> 0045 <context name="IncludeGlobRangeCharClass" attribute="Include - Character Class" lineEndContext="#pop#pop#pop#pop"> 0046 <DetectChar char="]" attribute="Include - Character Class" context="#pop#pop"/> 0047 <AnyChar String=":.=-" attribute="Include - Character Class"/> 0048 <DetectIdentifier attribute="Include - Character Class"/> 0049 </context> 0050 <context name="IncludeGlobRangeEscape" attribute="Include - Glob Inner Range" lineEndContext="#pop#pop#pop#pop"> 0051 <RegExpr attribute="Include - Glob Inner Range" String="." context="#pop#pop"/> 0052 </context> 0053 0054 0055 <!-- Exclude rules (same of Include, but with Exclude prefix for attribute) --> 0056 0057 <context name="Exclude" attribute="Exclude" lineEndContext="#pop"> 0058 <AnyChar attribute="Exclude - Glob" String="?*"/> 0059 <DetectChar char="/" attribute="Exclude - Directory Separator"/> 0060 <DetectChar char="[" attribute="Exclude - Glob Range" context="ExcludeGlobRange"/> 0061 <DetectChar char="\" attribute="Exclude - Escape" context="ExcludeEscaped"/> 0062 <RegExpr attribute="Exclude" String="[^[?*\\/]+"/> 0063 </context> 0064 <context name="ExcludeEscaped" attribute="Exclude" lineEndContext="#pop#pop"> 0065 <RegExpr attribute="Exclude" String="." context="#pop"/> 0066 </context> 0067 0068 <context name="ExcludeGlobRange" attribute="Exclude - Glob Range" lineEndContext="#pop#pop" fallthroughContext="ExcludeGlobRangeListStart"> 0069 <AnyChar String="^!" attribute="Exclude - Glob Range" context="ExcludeGlobRangeListStart"/> 0070 </context> 0071 <context name="ExcludeGlobRangeListStart" attribute="Exclude - Glob Range" lineEndContext="#pop#pop" fallthroughContext="#pop!ExcludeGlobRangeList"> 0072 <DetectChar char="]" attribute="Exclude - Glob Inner Range" context="#pop!ExcludeGlobRangeList"/> 0073 </context> 0074 0075 <context name="ExcludeGlobRangeList" attribute="Exclude - Glob Inner Range" lineEndContext="#pop#pop" fallthroughContext="ExcludeGlobRangeListSpecial"> 0076 <RegExpr attribute="Exclude - Glob Inner Range" String="([^[\\\]]+|\[(?!(:&charclasses;:|\.[a-z-]\.|=[a-z]=)\]))++" context="ExcludeGlobRangeListSpecial"/> 0077 </context> 0078 0079 <context name="ExcludeGlobRangeListSpecial" attribute="Exclude - Glob Inner Range" lineEndContext="#pop#pop#pop"> 0080 <DetectChar char="]" attribute="Exclude - Glob Range" context="#pop#pop#pop"/> 0081 <DetectChar char="\" attribute="Exclude - Escape" context="ExcludeGlobRangeEscape"/> 0082 <DetectChar char="[" attribute="Exclude - Character Class" context="ExcludeGlobRangeCharClass"/> 0083 </context> 0084 <context name="ExcludeGlobRangeCharClass" attribute="Exclude - Character Class" lineEndContext="#pop#pop#pop#pop"> 0085 <DetectChar char="]" attribute="Exclude - Character Class" context="#pop#pop"/> 0086 <AnyChar String=":.=-" attribute="Exclude - Character Class"/> 0087 <DetectIdentifier attribute="Exclude - Character Class"/> 0088 </context> 0089 <context name="ExcludeGlobRangeEscape" attribute="Exclude - Glob Inner Range" lineEndContext="#pop#pop#pop#pop"> 0090 <RegExpr attribute="Exclude - Glob Inner Range" String="." context="#pop#pop"/> 0091 </context> 0092 0093 </contexts> 0094 0095 <itemDatas> 0096 <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> 0097 <itemData name="Comment" defStyleNum="dsComment"/> 0098 0099 <itemData name="Exclude" defStyleNum="dsString" spellChecking="false"/> 0100 <itemData name="Exclude - Directory Separator" defStyleNum="dsNormal" spellChecking="false"/> 0101 <itemData name="Exclude - Escape" defStyleNum="dsString" spellChecking="false"/> 0102 <itemData name="Exclude - Glob" defStyleNum="dsOperator" spellChecking="false"/> 0103 <itemData name="Exclude - Glob Range" defStyleNum="dsNormal" spellChecking="false"/> 0104 <itemData name="Exclude - Glob Inner Range" defStyleNum="dsString" spellChecking="false"/> 0105 <itemData name="Exclude - Character Class" defStyleNum="dsString" spellChecking="false"/> 0106 0107 <itemData name="Include" defStyleNum="dsChar" spellChecking="false"/> 0108 <itemData name="Include - Prefix" defStyleNum="dsChar" spellChecking="false"/> 0109 <itemData name="Include - Directory Separator" defStyleNum="dsNormal" spellChecking="false"/> 0110 <itemData name="Include - Escape" defStyleNum="dsChar" spellChecking="false"/> 0111 <itemData name="Include - Glob" defStyleNum="dsOperator" spellChecking="false"/> 0112 <itemData name="Include - Glob Range" defStyleNum="dsNormal" spellChecking="false"/> 0113 <itemData name="Include - Glob Inner Range" defStyleNum="dsChar" spellChecking="false"/> 0114 <itemData name="Include - Character Class" defStyleNum="dsChar" spellChecking="false"/> 0115 </itemDatas> 0116 0117 </highlighting> 0118 0119 <general> 0120 <comments> 0121 <comment name="singleLine" start="#"/> 0122 </comments> 0123 <keywords casesensitive="0"/> 0124 </general> 0125 </language> 0126