Warning, /frameworks/syntax-highlighting/data/syntax/jira.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 start "(^|(?&lt;=\s))">
0005   <!ENTITY citation "&start;\?\?(?=[^\s][^?]+\?\?([\s.,;:-]|$))">
0006   <!ENTITY deleted "&start;\-(?=[^\s][^\-]+\-([\s.,;:?]|$))">
0007   <!ENTITY emphasis "&start;_(?=[^\s][^_]+_([\s.,;:-]|\?|$))">
0008   <!ENTITY inserted "&start;\+(?=[^\s][^\+]+\+([\s.,;:-]|\?|$))">
0009   <!ENTITY monospaced "&start;\{\{(?=[^\s][^}]+\}\}([\s.,;:-]|$))">
0010   <!ENTITY strong "&start;\*(?=[^\s][^\*]+\*([\s.,;:-]|\?|$))">
0011   <!ENTITY subscript "&start;~(?=[^\s][^~]+~([\s.,;:-]|\?|$))">
0012   <!ENTITY superscript "&start;\^(?=[^\s][^\^]+\^([\s.,;:-]|\?|$))">
0013 
0014   <!ENTITY attachment     "&start;\[\^(?=[^]\s][^]]+\])">
0015   <!ENTITY bracketAnchor  "&start;\[#(?=[^]\s][^]]+\])">
0016   <!ENTITY taggedLink     "&start;\[(?=[^]\s|][^]|]+(\|[^]\s|][^]|]+)?\])">
0017   <!ENTITY userTag        "&start;\[~(?=[^]\s][^]]+\])">
0018 
0019   <!ENTITY embeddedItem   "&start;!(?=[^!\s][^!]+!)">
0020 
0021   <!ENTITY panel          "&start;\{panel(?=[^\}]*\})">
0022 
0023   <!ENTITY code           "&start;\{code(?=[^\}]*\})">
0024 
0025   <!ENTITY url "(http:|https:|ftp:|mailto:)[^]|) ]*(?=$|[]|\s|\)])">
0026 ]>
0027 <language name="Jira" section="Markup" version="13" kateversion="5.79" extensions="*.jira" mimetype="" license="FDL" >
0028   <highlighting>
0029 
0030     <!--
0031     Documentation about the Jira syntax: https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all
0032     -->
0033 
0034     <contexts>
0035 
0036       <!-- Main Context -->
0037       <context name="Start" attribute="Normal" lineEndContext="#stay">
0038         <DetectSpaces />
0039         <IncludeRules context="FindHeader" />
0040         <IncludeRules context="FindBlockQuote" />
0041         <IncludeRules context="FindText" />
0042         <IncludeRules context="FindListItem" />
0043         <IncludeRules context="FindIcons" />
0044         <IncludeRules context="FindTables" />
0045         <IncludeRules context="FindColor" />
0046         <IncludeRules context="FindQuote" />
0047         <IncludeRules context="FindNoFormat" />
0048         <IncludeRules context="FindPanels" />
0049         <IncludeRules context="FindCode" />
0050         <IncludeRules context="FindTextBreaks" />
0051         <IncludeRules context="FindEmbeddedItems" />
0052         <IncludeRules context="FindLinks" />
0053         <IncludeRules context="FindEscapeSequences" />
0054         <IncludeRules context="FindLineBreaks" />
0055       </context>
0056 
0057 
0058       <!-- Contexts -->
0059 
0060       <!-- Headings -->
0061       <context name="Header" attribute="Header" lineEndContext="#pop" />
0062 
0063 
0064       <!-- Images / Attachments -->
0065       <context name="EmbeddedItemContent" attribute="Link" lineEndContext="#stay" fallthroughContext="EmbeddedItemLink">
0066         <!-- !spaceKey:pageTitle^attachment.mov! -->
0067         <RegExpr String="[^:!|]+(?=:[^!|]*\^)" attribute="Label" context="EmbeddedItemPageTitle" />
0068       </context>
0069       <context name="EmbeddedItemLink" attribute="Link" lineEndContext="#stay">
0070         <DetectChar char="|" attribute="Special Character" context="EmbeddedItemAttributes" />
0071         <DetectChar char="!" attribute="Special Character" context="#pop#pop" />
0072       </context>
0073       <context name="EmbeddedItemPageTitle" attribute="Label" lineEndContext="#stay">
0074         <DetectChar char=":" attribute="Special Character" context="#stay" />
0075         <DetectChar char="^" attribute="Special Character" context="#pop!EmbeddedItemLink" />
0076       </context>
0077       <context name="EmbeddedItemAttributes" attribute="Normal" lineEndContext="#stay">
0078         <DetectChar char="!" attribute="Special Character" context="#pop#pop#pop" />
0079         <DetectChar char="=" attribute="Normal" context="EmbeddedItemAttributeValue" />
0080         <DetectIdentifier attribute="AttributeKeyword" context="#stay" />
0081       </context>
0082       <context name="EmbeddedItemAttributeValue" attribute="AttributeValue" lineEndContext="#stay">
0083         <DetectChar char="," attribute="Normal" context="#pop" />
0084         <DetectChar char="!" attribute="Special Character" context="#pop#pop#pop#pop" />
0085         <DetectIdentifier attribute="AttributeValue" context="#stay" />
0086       </context>
0087 
0088       <context name="PanelStartTagContent" attribute="Normal" lineEndContext="#stay">
0089         <DetectChar char=":" attribute="Special Character" context="PanelAttributes" />
0090         <DetectChar char="}" attribute="Special Character" context="PanelContent" />
0091       </context>
0092       <context name="PanelContent" attribute="Normal" lineEndContext="#stay">
0093         <DetectSpaces />
0094         <StringDetect String="{panel}" attribute="Special Character" context="#pop#pop" />
0095         <IncludeRules context="FindBlockQuote" />
0096         <IncludeRules context="FindText" />
0097         <IncludeRules context="FindListItem" />
0098         <IncludeRules context="FindIcons" />
0099         <IncludeRules context="FindTables" />
0100         <IncludeRules context="FindColor" />
0101         <IncludeRules context="FindQuote" />
0102         <IncludeRules context="FindNoFormat" />
0103         <IncludeRules context="FindCode" />
0104         <IncludeRules context="FindTextBreaks" />
0105         <IncludeRules context="FindEmbeddedItems" />
0106         <IncludeRules context="FindLinks" />
0107         <IncludeRules context="FindEscapeSequences" />
0108         <IncludeRules context="FindLineBreaks" />
0109       </context>
0110       <context name="PanelAttributes" attribute="Normal" lineEndContext="#stay">
0111         <DetectChar char="}" attribute="Special Character" context="#pop!PanelContent" />
0112         <DetectChar char="=" attribute="Normal" context="PanelAttributeValue" />
0113         <DetectIdentifier attribute="AttributeKeyword" context="#stay" />
0114       </context>
0115       <context name="PanelAttributeValue" attribute="AttributeValue" lineEndContext="#stay">
0116         <DetectChar char="|" attribute="Special Character" context="#pop" />
0117         <DetectChar char="}" attribute="Special Character" context="#pop#pop!PanelContent" />
0118       </context>
0119 
0120 
0121       <!-- See https://confluence.atlassian.com/display/DOC/Code+Block+Macro for keywords -->
0122       <context name="CodeContext" lineEndContext="#stay" attribute="Normal" fallthroughContext="JavaCodeStartTagContent">
0123         <!-- TODO see note -->
0124           <!-- Note: Commented out lines are for languages that Jira supports but KTextEditor does not yet. -->
0125 <!--         <RegExpr String=":(?= *actionscript3 *[|}])" attribute="Special Character" context="JavaCodeStartTagContent" /> -->
0126         <RegExpr String=":(?= *(ada|title=[- \w]+\.(adb|ads|ada|a)) *[|}])" attribute="Special Character" context="AdaCodeStartTagContent" />
0127 <!--         <RegExpr String=":(?= *AppleScript *[|}])" attribute="Special Character" context="AppleScriptCodeStartTagContent" /> -->
0128         <RegExpr String=":(?= *(bash|title=[- \w]*\.(sh|bash)) *[|}])" attribute="Special Character" context="BashCodeStartTagContent" />
0129         <RegExpr String=":(?= *(csharp|title=[- \w]*\.(cs|ashx)) *[|}])" attribute="Special Character" context="CSharpCodeStartTagContent" />
0130         <RegExpr String=":(?= *(coldfusion|title=[- \w]*\.(cfm|cfc|cfml|dbm)) *[|}])" attribute="Special Character" context="ColdFusionCodeStartTagContent" />
0131         <RegExpr String=":(?= *(c(pp)?|title=[- \w]*\.([cChH]|cpp|hpp|cxx|c\+\+|cc|cu|hh)) *[|}])" attribute="Special Character" context="CppCodeStartTagContent" />
0132         <RegExpr String=":(?= *(css|title=[- \w]*\.css) *[|}])" attribute="Special Character" context="CssCodeStartTagContent" />
0133         <RegExpr String=":(?= *(delphi|title=[- \w]*\.(p|pas|pp)) *[|}])" attribute="Special Character" context="PascalCodeStartTagContent" />
0134         <RegExpr String=":(?= *(diff|title=[- \w]*\.(diff|patch)) *[|}])" attribute="Special Character" context="DiffCodeStartTagContent" />
0135         <RegExpr String=":(?= *(erlang|title=[- \w]*\.erl) *[|}])" attribute="Special Character" context="ErlangCodeStartTagContent" />
0136         <RegExpr String=":(?= *(groovy|title=([- \w]*\.(groovy|gradle|gvy)|Jenkinsfile)) *[|}])" attribute="Special Character" context="GroovyCodeStartTagContent" />
0137         <RegExpr String=":(?= *(haskell|title=[- \w]*\.c?hs) *[|}])" attribute="Special Character" context="HaskellCodeStartTagContent" />
0138         <RegExpr String=":(?= *(html|title=[- \w]*\.(s?html?|aspx)) *[|}])" attribute="Special Character" context="HtmlCodeStartTagContent" />
0139         <RegExpr String=":(?= *(java|title=[- \w]*\.java) *[|}])" attribute="Special Character" context="JavaCodeStartTagContent" />
0140 <!--         <RegExpr String=":(?= *javafx *[|}])" attribute="Special Character" context="JavaCodeStartTagContent" /> -->
0141         <RegExpr String=":(?= *(javascript|title=[- \w]*\.([cm]?js)) *[|}])" attribute="Special Character" context="JavaScriptCodeStartTagContent" />
0142         <RegExpr String=":(?= *(json|title=[- \w]*\.json) *[|}])" attribute="Special Character" context="JsonCodeStartTagContent" />
0143         <RegExpr String=":(?= *(lua|title=[- \w]*\.(lua|rockspec)) *[|}])" attribute="Special Character" context="LuaCodeStartTagContent" />
0144         <RegExpr String=":(?= *none *[|}])" attribute="Special Character" context="NoneCodeStartTagContent" />
0145 <!-- <RegExpr String=":(?= *nyan *[|}])" attribute="Special Character" context="NyanCodeStartTagContent" /> -->
0146         <RegExpr String=":(?= *(perl|title=[- \w]*\.(pl|PL|pm)) *[|}])" attribute="Special Character" context="PerlCodeStartTagContent" />
0147         <RegExpr String=":(?= *(php|title=[- \w]*\.php) *[|}])" attribute="Special Character" context="PhpCodeStartTagContent" />
0148         <RegExpr String=":(?= *(powershell|title=[- \w]*\.(ps1|psm1|psd1)) *[|}])" attribute="Special Character" context="PowerShellCodeStartTagContent" />
0149         <RegExpr String=":(?= *(python|title=[- \w]*\.py) *[|}])" attribute="Special Character" context="PythonCodeStartTagContent" />
0150         <RegExpr String=":(?= *(ruby|title=([- \w]*\.(rb|erb|rake|gemspec)|Rakefile|Gemfile|Vagrantfile)) *[|}])" attribute="Special Character" context="RubyCodeStartTagContent" />
0151         <RegExpr String=":(?= *(scala|title=[- \w]*\.(scala|sbt)) *[|}])" attribute="Special Character" context="ScalaCodeStartTagContent" />
0152         <RegExpr String=":(?= *(sql|title=[- \w]*\.sql) *[|}])" attribute="Special Character" context="SqlCodeStartTagContent" />
0153         <RegExpr String=":(?= *(swift|title=[- \w]*\.swift) *[|}])" attribute="Special Character" context="SwiftCodeStartTagContent" />
0154 <!--         <RegExpr String=":(?= *vb *[|}])" attribute="Special Character" context="VisualBasicCodeStartTagContent" /> -->
0155         <RegExpr String=":(?= *(xml|title=[- \w]*\.(xml|xslt?)) *[|}])" attribute="Special Character" context="XmlCodeStartTagContent" />
0156         <RegExpr String=":(?= *(yaml|title=[- \w]*\.ya?ml) *[|}])" attribute="Special Character" context="YamlCodeStartTagContent" />
0157       </context>
0158 
0159       <context name="FindCodeAttributes" attribute="Normal" lineEndContext="#stay">
0160         <DetectChar char="|" attribute="Special Character" context="#stay" />
0161         <DetectChar char="=" attribute="Normal" context="CodeAttributeValue" />
0162         <DetectIdentifier attribute="AttributeKeyword" context="#stay" />
0163       </context>
0164       <context name="CodeAttributeValue" attribute="AttributeValue" lineEndContext="#stay">
0165         <AnyChar String="|}" context="#pop" lookAhead="true" />
0166       </context>
0167 
0168       <context name="FindEndCode" attribute="Normal" lineEndContext="#stay">
0169         <StringDetect String="{code}" attribute="Special Character" context="#pop#pop#pop" />
0170       </context>
0171 
0172       <context name="AdaCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0173         <DetectChar char="}" attribute="Special Character" context="AdaCodeContent" />
0174         <IncludeRules context="FindCodeAttributes" />
0175       </context>
0176       <context name="AdaCodeContent" attribute="Normal" lineEndContext="#stay">
0177         <IncludeRules context="FindEndCode" />
0178         <IncludeRules context="##Ada" />
0179       </context>
0180 
0181       <context name="BashCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0182         <DetectChar char="}" attribute="Special Character" context="BashCodeContent" />
0183         <IncludeRules context="FindCodeAttributes" />
0184       </context>
0185       <context name="BashCodeContent" attribute="Normal" lineEndContext="#stay" fallthroughContext="Command##Bash">
0186         <IncludeRules context="FindEndCode" />
0187         <IncludeRules context="##Bash" />
0188       </context>
0189 
0190       <context name="CSharpCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0191         <DetectChar char="}" attribute="Special Character" context="CSharpCodeContent" />
0192         <IncludeRules context="FindCodeAttributes" />
0193       </context>
0194       <context name="CSharpCodeContent" attribute="Normal" lineEndContext="#stay">
0195         <IncludeRules context="FindEndCode" />
0196         <IncludeRules context="##C#" />
0197       </context>
0198 
0199       <context name="ColdFusionCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0200         <DetectChar char="}" attribute="Special Character" context="ColdFusionCodeContent" />
0201         <IncludeRules context="FindCodeAttributes" />
0202       </context>
0203       <context name="ColdFusionCodeContent" attribute="Normal" lineEndContext="#stay">
0204         <IncludeRules context="FindEndCode" />
0205         <IncludeRules context="##ColdFusion" />
0206       </context>
0207 
0208       <context name="CppCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0209         <DetectChar char="}" attribute="Special Character" context="CppCodeContent" />
0210         <IncludeRules context="FindCodeAttributes" />
0211       </context>
0212       <context name="CppCodeContent" attribute="Normal" lineEndContext="#stay">
0213         <IncludeRules context="FindEndCode" />
0214         <IncludeRules context="##C++" />
0215       </context>
0216 
0217       <context name="CssCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0218         <DetectChar char="}" attribute="Special Character" context="CssCodeContent" />
0219         <IncludeRules context="FindCodeAttributes" />
0220       </context>
0221       <context name="CssCodeContent" attribute="Normal" lineEndContext="#stay">
0222         <IncludeRules context="FindEndCode" />
0223         <IncludeRules context="##CSS" />
0224       </context>
0225 
0226       <context name="DiffCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0227         <DetectChar char="}" attribute="Special Character" context="DiffCodeContent" />
0228         <IncludeRules context="FindCodeAttributes" />
0229       </context>
0230       <context name="DiffCodeContent" attribute="Normal" lineEndContext="#stay">
0231         <IncludeRules context="FindEndCode" />
0232         <IncludeRules context="##Diff" />
0233       </context>
0234 
0235       <context name="ErlangCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0236         <DetectChar char="}" attribute="Special Character" context="ErlangCodeContent" />
0237         <IncludeRules context="FindCodeAttributes" />
0238       </context>
0239       <context name="ErlangCodeContent" attribute="Normal" lineEndContext="#stay">
0240         <IncludeRules context="FindEndCode" />
0241         <IncludeRules context="##Erlang" />
0242       </context>
0243 
0244       <context name="GroovyCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0245         <DetectChar char="}" attribute="Special Character" context="GroovyCodeContent" />
0246         <IncludeRules context="FindCodeAttributes" />
0247       </context>
0248       <context name="GroovyCodeContent" attribute="Normal" lineEndContext="#stay">
0249         <IncludeRules context="FindEndCode" />
0250         <IncludeRules context="##Groovy" />
0251       </context>
0252 
0253       <context name="HaskellCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0254         <DetectChar char="}" attribute="Special Character" context="HaskellCodeContent" />
0255         <IncludeRules context="FindCodeAttributes" />
0256       </context>
0257       <context name="HaskellCodeContent" attribute="Normal" lineEndContext="#stay">
0258         <IncludeRules context="FindEndCode" />
0259         <IncludeRules context="##Haskell" />
0260       </context>
0261 
0262       <context name="HtmlCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0263         <DetectChar char="}" attribute="Special Character" context="HtmlCodeContent" />
0264         <IncludeRules context="FindCodeAttributes" />
0265       </context>
0266       <context name="HtmlCodeContent" attribute="Normal" lineEndContext="#stay">
0267         <IncludeRules context="FindEndCode" />
0268         <IncludeRules context="##HTML" />
0269       </context>
0270 
0271       <context name="JavaCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0272         <DetectChar char="}" attribute="Special Character" context="JavaCodeContent" />
0273         <IncludeRules context="FindCodeAttributes" />
0274       </context>
0275       <context name="JavaCodeContent" attribute="Normal" lineEndContext="#stay">
0276         <IncludeRules context="FindEndCode" />
0277         <IncludeRules context="##Java" />
0278       </context>
0279 
0280       <context name="JavaScriptCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0281         <DetectChar char="}" attribute="Special Character" context="JavaScriptCodeContent" />
0282         <IncludeRules context="FindCodeAttributes" />
0283       </context>
0284       <context name="JavaScriptCodeContent" attribute="Normal" lineEndContext="#stay">
0285         <IncludeRules context="FindEndCode" />
0286         <IncludeRules context="Normal##JavaScript" />
0287       </context>
0288 
0289       <context name="JsonCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0290         <DetectChar char="}" attribute="Special Character" context="JsonCodeContent" />
0291         <IncludeRules context="FindCodeAttributes" />
0292       </context>
0293       <context name="JsonCodeContent" attribute="Normal" lineEndContext="#stay">
0294         <IncludeRules context="FindEndCode" />
0295         <IncludeRules context="##JSON" />
0296       </context>
0297 
0298       <context name="LuaCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0299         <DetectChar char="}" attribute="Special Character" context="LuaCodeContent" />
0300         <IncludeRules context="FindCodeAttributes" />
0301       </context>
0302       <context name="LuaCodeContent" attribute="Normal" lineEndContext="#stay">
0303         <IncludeRules context="FindEndCode" />
0304         <IncludeRules context="##Lua" />
0305       </context>
0306 
0307       <context name="NoneCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0308         <DetectChar char="}" attribute="Special Character" context="NoneCodeContent" />
0309         <IncludeRules context="FindCodeAttributes" />
0310       </context>
0311       <context name="NoneCodeContent" attribute="Normal" lineEndContext="#stay">
0312         <IncludeRules context="FindEndCode" />
0313       </context>
0314 
0315       <context name="PascalCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0316         <DetectChar char="}" attribute="Special Character" context="PascalCodeContent" />
0317         <IncludeRules context="FindCodeAttributes" />
0318       </context>
0319       <context name="PascalCodeContent" attribute="Normal" lineEndContext="#stay">
0320         <IncludeRules context="FindEndCode" />
0321         <IncludeRules context="##Pascal" />
0322       </context>
0323 
0324       <context name="PerlCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0325         <DetectChar char="}" attribute="Special Character" context="PerlCodeContent" />
0326         <IncludeRules context="FindCodeAttributes" />
0327       </context>
0328       <context name="PerlCodeContent" attribute="Normal" lineEndContext="#stay">
0329         <IncludeRules context="FindEndCode" />
0330         <IncludeRules context="##Perl" />
0331       </context>
0332 
0333       <context name="PhpCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0334         <DetectChar char="}" attribute="Special Character" context="PhpCodeContent" />
0335         <IncludeRules context="FindCodeAttributes" />
0336       </context>
0337       <context name="PhpCodeContent" attribute="Normal" lineEndContext="#stay">
0338         <IncludeRules context="FindEndCode" />
0339         <IncludeRules context="phpsource##PHP/PHP" />
0340       </context>
0341 
0342       <context name="PowerShellCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0343         <DetectChar char="}" attribute="Special Character" context="PowerShellCodeContent" />
0344         <IncludeRules context="FindCodeAttributes" />
0345       </context>
0346       <context name="PowerShellCodeContent" attribute="Normal" lineEndContext="#stay">
0347         <IncludeRules context="FindEndCode" />
0348         <IncludeRules context="##PowerShell" />
0349       </context>
0350 
0351       <context name="PythonCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0352         <DetectChar char="}" attribute="Special Character" context="PythonCodeContent" />
0353         <IncludeRules context="FindCodeAttributes" />
0354       </context>
0355       <context name="PythonCodeContent" attribute="Normal" lineEndContext="#stay">
0356         <IncludeRules context="FindEndCode" />
0357         <IncludeRules context="##Python" />
0358       </context>
0359 
0360       <context name="RubyCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0361         <DetectChar char="}" attribute="Special Character" context="RubyCodeContent" />
0362         <IncludeRules context="FindCodeAttributes" />
0363       </context>
0364       <context name="RubyCodeContent" attribute="Normal" lineEndContext="#stay">
0365         <IncludeRules context="FindEndCode" />
0366         <IncludeRules context="##Ruby" />
0367       </context>
0368 
0369       <context name="ScalaCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0370         <DetectChar char="}" attribute="Special Character" context="ScalaCodeContent" />
0371         <IncludeRules context="FindCodeAttributes" />
0372       </context>
0373       <context name="ScalaCodeContent" attribute="Normal" lineEndContext="#stay">
0374         <IncludeRules context="FindEndCode" />
0375         <IncludeRules context="##Scala" />
0376       </context>
0377 
0378       <context name="SqlCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0379         <DetectChar char="}" attribute="Special Character" context="SqlCodeContent" />
0380         <IncludeRules context="FindCodeAttributes" />
0381       </context>
0382       <context name="SqlCodeContent" attribute="Normal" lineEndContext="#stay">
0383         <IncludeRules context="FindEndCode" />
0384         <IncludeRules context="##SQL" />
0385       </context>
0386 
0387       <context name="SwiftCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0388         <DetectChar char="}" attribute="Special Character" context="SwiftCodeContent" />
0389         <IncludeRules context="FindCodeAttributes" />
0390       </context>
0391       <context name="SwiftCodeContent" attribute="Normal" lineEndContext="#stay">
0392         <IncludeRules context="FindEndCode" />
0393         <IncludeRules context="Normal##Swift" />
0394       </context>
0395 
0396       <context name="XmlCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0397         <DetectChar char="}" attribute="Special Character" context="XmlCodeContent" />
0398         <IncludeRules context="FindCodeAttributes" />
0399       </context>
0400       <context name="XmlCodeContent" attribute="Normal" lineEndContext="#stay">
0401         <IncludeRules context="FindEndCode" />
0402         <IncludeRules context="##XML" />
0403       </context>
0404 
0405       <context name="YamlCodeStartTagContent" attribute="Normal" lineEndContext="#stay">
0406         <DetectChar char="}" attribute="Special Character" context="YamlCodeContent" />
0407         <IncludeRules context="FindCodeAttributes" />
0408       </context>
0409       <context name="YamlCodeContent" attribute="Normal" lineEndContext="#stay">
0410         <IncludeRules context="FindEndCode" />
0411         <IncludeRules context="##YAML" />
0412       </context>
0413 
0414 
0415       <!-- Links -->
0416       <context name="BracketAnchorContent" attribute="Link" lineEndContext="#stay">
0417         <DetectChar char="]" attribute="Special Character" context="#pop" />
0418       </context>
0419 
0420       <context name="AttachmentLinkContent" attribute="Link" lineEndContext="#stay">
0421         <DetectChar char="]" attribute="Special Character" context="#pop" />
0422       </context>
0423 
0424       <context name="UserTagContent" attribute="Link" lineEndContext="#stay">
0425         <DetectChar char="]" attribute="Special Character" context="#pop" />
0426       </context>
0427 
0428       <context name="TaggedLinkContent" attribute="Link" lineEndContext="#stay" fallthroughContext="TaggedLinkUrl">
0429         <DetectChar char="|" attribute="Special Character" context="TaggedLinkUrl" />
0430         <RegExpr String="[^]|]+(?=\|)" attribute="Label" context="#stay" />
0431       </context>
0432       <context name="TaggedLinkUrl" attribute="Link" lineEndContext="#stay">
0433         <DetectChar char="]" attribute="Special Character" context="#pop#pop" />
0434       </context>
0435 
0436       <context name="BraceAnchorContent" attribute="Link" lineEndContext="#stay">
0437         <DetectChar char="}" attribute="Special Character" context="#pop#pop" />
0438       </context>
0439 
0440 
0441       <!-- Text Effects -->
0442       <context name="ColorTagColor" attribute="Normal" lineEndContext="#stay">
0443         <!-- Black and White have been skipped on purpose. -->
0444         <StringDetect String="silver}"  context="ColorSilverTagColor" lookAhead="true" />
0445         <StringDetect String="gray}"  context="ColorGrayTagColor" lookAhead="true" />
0446         <StringDetect String="red}"  context="ColorRedTagColor" lookAhead="true" />
0447         <StringDetect String="maroon}"  context="ColorMaroonTagColor" lookAhead="true" />
0448         <StringDetect String="yellow}"  context="ColorYellowTagColor" lookAhead="true" />
0449         <StringDetect String="olive}"  context="ColorOliveTagColor" lookAhead="true" />
0450         <StringDetect String="lime}"  context="ColorLimeTagColor" lookAhead="true" />
0451         <StringDetect String="green}"  context="ColorGreenTagColor" lookAhead="true" />
0452         <StringDetect String="aqua}"  context="ColorAquaTagColor" lookAhead="true" />
0453         <StringDetect String="teal}"  context="ColorTealTagColor" lookAhead="true" />
0454         <StringDetect String="blue}"  context="ColorBlueTagColor" lookAhead="true" />
0455         <StringDetect String="navy}"  context="ColorNavyTagColor" lookAhead="true" />
0456         <StringDetect String="fuchsia}"  context="ColorFuchsiaTagColor" lookAhead="true" />
0457         <StringDetect String="purple}"  context="ColorPurpleTagColor" lookAhead="true" />
0458         <DetectChar char="}"  attribute="Special Character" context="HighlightedColorContent" />
0459       </context>
0460       <context name="HighlightedColorContent" attribute="Normal" lineEndContext="#stay">
0461         <DetectSpaces />
0462         <DetectIdentifier />
0463         <StringDetect String="{color}" attribute="Special Character" context="#pop#pop" />
0464       </context>
0465       <context name="ColorSilverTagColor" attribute="Normal" lineEndContext="#stay">
0466         <DetectChar char="}" attribute="Special Character" context="#pop!SilverContent" />
0467         <StringDetect String="silver" attribute="Silver" />
0468       </context>
0469       <context name="SilverContent" attribute="Silver" lineEndContext="#stay">
0470         <IncludeRules context="HighlightedColorContent" />
0471       </context>
0472       <context name="ColorGrayTagColor" attribute="Normal" lineEndContext="#stay">
0473         <DetectChar char="}" attribute="Special Character" context="#pop!GrayContent" />
0474         <StringDetect String="gray" attribute="Gray" />
0475       </context>
0476       <context name="GrayContent" attribute="Gray" lineEndContext="#stay">
0477         <IncludeRules context="HighlightedColorContent" />
0478       </context>
0479       <context name="ColorRedTagColor" attribute="Normal" lineEndContext="#stay">
0480         <DetectChar char="}" attribute="Special Character" context="#pop!RedContent" />
0481         <StringDetect String="red" attribute="Red" />
0482       </context>
0483       <context name="RedContent" attribute="Red" lineEndContext="#stay">
0484         <IncludeRules context="HighlightedColorContent" />
0485       </context>
0486       <context name="ColorMaroonTagColor" attribute="Normal" lineEndContext="#stay">
0487         <DetectChar char="}" attribute="Special Character" context="#pop!MaroonContent" />
0488         <StringDetect String="maroon" attribute="Maroon" />
0489       </context>
0490       <context name="MaroonContent" attribute="Maroon" lineEndContext="#stay">
0491         <IncludeRules context="HighlightedColorContent" />
0492       </context>
0493       <context name="ColorYellowTagColor" attribute="Normal" lineEndContext="#stay">
0494         <DetectChar char="}" attribute="Special Character" context="#pop!YellowContent" />
0495         <StringDetect String="yellow" attribute="Yellow" />
0496       </context>
0497       <context name="YellowContent" attribute="Yellow" lineEndContext="#stay">
0498         <IncludeRules context="HighlightedColorContent" />
0499       </context>
0500       <context name="ColorOliveTagColor" attribute="Normal" lineEndContext="#stay">
0501         <DetectChar char="}" attribute="Special Character" context="#pop!OliveContent" />
0502         <StringDetect String="olive" attribute="Olive" />
0503       </context>
0504       <context name="OliveContent" attribute="Olive" lineEndContext="#stay">
0505         <IncludeRules context="HighlightedColorContent" />
0506       </context>
0507       <context name="ColorLimeTagColor" attribute="Normal" lineEndContext="#stay">
0508         <DetectChar char="}" attribute="Special Character" context="#pop!LimeContent" />
0509         <StringDetect String="lime" attribute="Lime" />
0510       </context>
0511       <context name="LimeContent" attribute="Lime" lineEndContext="#stay">
0512         <IncludeRules context="HighlightedColorContent" />
0513       </context>
0514       <context name="ColorGreenTagColor" attribute="Normal" lineEndContext="#stay">
0515         <DetectChar char="}" attribute="Special Character" context="#pop!GreenContent" />
0516         <StringDetect String="green" attribute="Green" />
0517       </context>
0518       <context name="GreenContent" attribute="Green" lineEndContext="#stay">
0519         <IncludeRules context="HighlightedColorContent" />
0520       </context>
0521       <context name="ColorAquaTagColor" attribute="Normal" lineEndContext="#stay">
0522         <DetectChar char="}" attribute="Special Character" context="#pop!AquaContent" />
0523         <StringDetect String="aqua" attribute="Aqua" />
0524       </context>
0525       <context name="AquaContent" attribute="Aqua" lineEndContext="#stay">
0526         <IncludeRules context="HighlightedColorContent" />
0527       </context>
0528       <context name="ColorTealTagColor" attribute="Normal" lineEndContext="#stay">
0529         <DetectChar char="}" attribute="Special Character" context="#pop!TealContent" />
0530         <StringDetect String="teal" attribute="Teal" />
0531       </context>
0532       <context name="TealContent" attribute="Teal" lineEndContext="#stay">
0533         <IncludeRules context="HighlightedColorContent" />
0534       </context>
0535       <context name="ColorBlueTagColor" attribute="Normal" lineEndContext="#stay">
0536         <DetectChar char="}" attribute="Special Character" context="#pop!BlueContent" />
0537         <StringDetect String="blue" attribute="Blue" />
0538       </context>
0539       <context name="BlueContent" attribute="Blue" lineEndContext="#stay">
0540         <IncludeRules context="HighlightedColorContent" />
0541       </context>
0542       <context name="ColorNavyTagColor" attribute="Normal" lineEndContext="#stay">
0543         <DetectChar char="}" attribute="Special Character" context="#pop!NavyContent" />
0544         <StringDetect String="navy" attribute="Navy" />
0545       </context>
0546       <context name="NavyContent" attribute="Navy" lineEndContext="#stay">
0547         <IncludeRules context="HighlightedColorContent" />
0548       </context>
0549       <context name="ColorFuchsiaTagColor" attribute="Normal" lineEndContext="#stay">
0550         <DetectChar char="}" attribute="Special Character" context="#pop!FuchsiaContent" />
0551         <StringDetect String="fuchsia" attribute="Fuchsia" />
0552       </context>
0553       <context name="FuchsiaContent" attribute="Fuchsia" lineEndContext="#stay">
0554         <IncludeRules context="HighlightedColorContent" />
0555       </context>
0556       <context name="ColorPurpleTagColor" attribute="Normal" lineEndContext="#stay">
0557         <DetectChar char="}" attribute="Special Character" context="#pop!PurpleContent" />
0558         <StringDetect String="purple" attribute="Purple" />
0559       </context>
0560       <context name="PurpleContent" attribute="Purple" lineEndContext="#stay">
0561         <IncludeRules context="HighlightedColorContent" />
0562       </context>
0563 
0564       <context name="BlockQuote" lineEndContext="#stay" lineEmptyContext="#pop" attribute="Block Quotation"/>
0565       <context name="BoldContent" attribute="Bold" lineEndContext="#stay">
0566         <DetectChar char="*" attribute="Special Character" context="#pop" />
0567       </context>
0568       <context name="CitationContent" attribute="Citation" lineEndContext="#stay">
0569         <Detect2Chars char="?" char1="?" attribute="Special Character" context="#pop" />
0570       </context>
0571       <context name="DeletedContent" attribute="Stroked Out" lineEndContext="#stay">
0572         <DetectChar char="-" attribute="Special Character" context="#pop" />
0573       </context>
0574       <context name="InsertedContent" attribute="Underlined" lineEndContext="#stay">
0575         <DetectChar char="+" attribute="Special Character" context="#pop" />
0576       </context>
0577       <context name="ItalicContent" attribute="Italic" lineEndContext="#stay">
0578         <DetectChar char="_" attribute="Special Character" context="#pop" />
0579       </context>
0580       <context name="Monospaced" attribute="Normal" lineEndContext="#stay">
0581         <Detect2Chars char="}" char1="}" attribute="Special Character" context="#pop" />
0582       </context>
0583       <context name="Quote" attribute="Block Quotation" lineEndContext="#stay">
0584         <DetectSpaces />
0585         <DetectIdentifier />
0586         <StringDetect String="{quote}" context="#pop" attribute="Special Character" />
0587       </context>
0588       <context name="SubscriptContent" attribute="Normal" lineEndContext="#stay">
0589         <DetectChar char="~" attribute="Special Character" context="#pop" />
0590       </context>
0591       <context name="SuperscriptContent" attribute="Normal" lineEndContext="#stay">
0592         <DetectChar char="^" attribute="Special Character" context="#pop" />
0593       </context>
0594 
0595 
0596       <!-- Tables -->
0597       <context name="TableHeaderRow" attribute="Bold" lineEndContext="#pop">
0598         <DetectSpaces />
0599         <DetectIdentifier />
0600         <Detect2Chars char="|" char1="|" attribute="Special Character" context="#stay" />
0601         <IncludeRules context="FindTextBreaks" />
0602         <IncludeRules context="FindEscapeSequences" />
0603         <IncludeRules context="FindIcons" />
0604       </context>
0605       <context name="TableRegularRow" attribute="Normal" lineEndContext="#pop">
0606         <DetectSpaces />
0607         <DetectChar char="|" attribute="Special Character" context="#stay" />
0608         <IncludeRules context="FindText" />
0609         <IncludeRules context="FindTextBreaks" />
0610         <IncludeRules context="FindEscapeSequences" />
0611         <IncludeRules context="FindLinks" />
0612         <IncludeRules context="FindColor" />
0613         <IncludeRules context="FindIcons" />
0614       </context>
0615 
0616       <context name="NoFormat" attribute="Normal" lineEndContext="#stay">
0617         <DetectSpaces />
0618         <DetectIdentifier />
0619         <StringDetect String="{noformat}" attribute="Special Character" context="#pop" />
0620       </context>
0621 
0622 
0623       <!-- Rules to Include -->
0624 
0625       <!-- BlockQuotes -->
0626       <context name="FindBlockQuote" attribute="Normal" lineEndContext="#stay">
0627         <StringDetect String="bq. " context="BlockQuote" attribute="Special Character" column="0" />
0628       </context>
0629 
0630       <!-- Colors -->
0631       <context name="FindColor" attribute="Normal" lineEndContext="#stay">
0632         <RegExpr String="\{color:(?=[^}]+\})" attribute="Special Character" context="ColorTagColor" />
0633       </context>
0634 
0635       <!-- Headings -->
0636       <context name="FindHeader" attribute="Normal" lineEndContext="#stay">
0637         <RegExpr String="^h[1-6]\. " context="Header" attribute="Special Character" column="0" />
0638       </context>
0639 
0640       <!-- Quotes -->
0641       <context name="FindQuote" attribute="Normal" lineEndContext="#stay">
0642         <StringDetect String="{quote}" context="Quote" attribute="Special Character" />
0643       </context>
0644 
0645       <!-- Text Breaks -->
0646       <context name="FindTextBreaks" attribute="Normal" lineEndContext="#stay">
0647         <Detect2Chars char="\" char1="\" attribute="Special Character" />
0648         <StringDetect String="----" attribute="Special Character" column="0" />
0649         <StringDetect String="---" attribute="Special Character" />
0650         <Detect2Chars char="-" char1="-" attribute="Special Character" />
0651       </context>
0652 
0653       <!-- Embedded Items -->
0654       <context name="FindEmbeddedItems" attribute="Normal" lineEndContext="#stay">
0655         <RegExpr String="&embeddedItem;" attribute="Special Character" context="EmbeddedItemContent" />
0656       </context>
0657 
0658       <!-- Links -->
0659       <context name="FindLinks" attribute="Normal" lineEndContext="#stay">
0660         <RegExpr String="&bracketAnchor;" attribute="Special Character" context="BracketAnchorContent" />
0661         <RegExpr String="&attachment;" attribute="Special Character" context="AttachmentLinkContent" />
0662         <RegExpr String="&userTag;" attribute="Special Character" context="UserTagContent" />
0663         <RegExpr String="&taggedLink;" attribute="Special Character" context="TaggedLinkContent" />
0664         <RegExpr String="\{anchor:(?=[^}]+\})" attribute="Special Character" context="BraceAnchorContent" />
0665         <RegExpr String="&url;" attribute="Link" />
0666       </context>
0667 
0668       <!-- Lists -->
0669       <context name="FindListItem" attribute="Normal" lineEndContext="#stay">
0670         <RegExpr String="^([*#]+|-)(?=\s)" attribute="Special Character" context="#stay" column="0" />
0671       </context>
0672 
0673       <!-- Text Effects -->
0674       <context name="FindTextEffects" attribute="Normal" lineEndContext="#stay">
0675         <RegExpr String="&strong;" attribute="Special Character" context="BoldContent" />
0676         <RegExpr String="&citation;" attribute="Special Character" context="CitationContent" />
0677         <RegExpr String="&deleted;" attribute="Special Character" context="DeletedContent" />
0678         <RegExpr String="&inserted;" attribute="Special Character" context="InsertedContent" />
0679         <RegExpr String="&subscript;" attribute="Special Character" context="SubscriptContent" />
0680         <RegExpr String="&superscript;" attribute="Special Character" context="SuperscriptContent" />
0681         <RegExpr String="&monospaced;" attribute="Special Character" context="Monospaced" />
0682       </context>
0683       <context name="EmphasisOrIdentifier" attribute="Normal" lineEndContext="#stay">
0684         <RegExpr String="&emphasis;" attribute="Special Character" context="#pop!ItalicContent" />
0685         <DetectIdentifier context="#pop" />
0686       </context>
0687 
0688       <!-- Text -->
0689       <context name="FindText" attribute="Normal" lineEndContext="#stay">
0690         <DetectChar char="_" context="EmphasisOrIdentifier" lookAhead="true" />
0691         <DetectIdentifier />
0692         <IncludeRules context="FindTextEffects" />
0693       </context>
0694 
0695       <!-- Tables -->
0696       <context name="FindTables" attribute="Normal" lineEndContext="#stay">
0697         <Detect2Chars char="|" char1="|" attribute="Special Character" context="TableHeaderRow" column="0" />
0698         <DetectChar char="|" attribute="Special Character" context="TableRegularRow" column="0" />
0699       </context>
0700 
0701       <!-- No format -->
0702       <context name="FindNoFormat" attribute="Normal" lineEndContext="#stay">
0703         <StringDetect String="{noformat}" context="NoFormat" attribute="Special Character" />
0704       </context>
0705 
0706       <!-- Panels -->
0707       <context name="FindPanels" attribute="Normal" lineEndContext="#stay">
0708         <RegExpr String="&panel;" attribute="Special Character" context="PanelStartTagContent" />
0709       </context>
0710 
0711       <!-- Code -->
0712       <context name="FindCode" attribute="Normal" lineEndContext="#stay">
0713         <RegExpr String="&code;" attribute="Special Character" context="CodeContext" />
0714       </context>
0715 
0716       <!-- Escape Sequences -->
0717       <context name="FindEscapeSequences" attribute="Normal" lineEndContext="#stay">
0718         <RegExpr String="\\[^ \\]" attribute="EscapeSequence" />
0719       </context>
0720 
0721       <!-- Line Breaks -->
0722       <context name="FindLineBreaks" attribute="Normal" lineEndContext="#stay">
0723         <LineContinue attribute="Special Character" />
0724       </context>
0725 
0726       <!-- Icons -->
0727       <context name="FindIcons" attribute="Normal" lineEndContext="#stay">
0728         <RegExpr String=":\)|:\(|:P|:D|;\)|\(([yni/x!+-?*]|on|off|[*][rgby]|flag|flagoff)\)" attribute="Special Character" />
0729       </context>
0730 
0731     </contexts>
0732     <itemDatas>
0733       <itemData name="Normal" defStyleNum="dsNormal" /><!-- Must be first. -->
0734 
0735       <itemData name="Bold" defStyleNum="dsNormal" bold="true" />
0736       <itemData name="Header" defStyleNum="dsKeyword" />
0737       <itemData name="Italic" defStyleNum="dsNormal" italic="true" />
0738       <itemData name="Citation" defStyleNum="dsNormal" italic="true" />
0739       <itemData name="Block Quotation" defStyleNum="dsNormal" />
0740       <itemData name="Special Character" defStyleNum="dsDecVal" bold="true" />
0741       <itemData name="Stroked Out" defStyleNum="dsNormal" strikeOut="true" />
0742       <itemData name="Underlined" defStyleNum="dsNormal" underline="true" />
0743       <itemData name="AttributeKeyword" defStyleNum="dsOthers" spellChecking="false" />
0744       <itemData name="AttributeValue" defStyleNum="dsString" spellChecking="false" />
0745       <itemData name="EscapeSequence" defStyleNum="dsChar" spellChecking="false" />
0746       <itemData name="Link" defStyleNum="dsPreprocessor" spellChecking="false" />
0747       <itemData name="Label" defStyleNum="dsAnnotation" spellChecking="false" />
0748 
0749       <!-- Colors -->
0750       <itemData name="Silver" defStyleNum="dsNormal" color="silver" />
0751       <itemData name="Gray" defStyleNum="dsNormal" color="gray" />
0752       <itemData name="Red" defStyleNum="dsNormal" color="red" />
0753       <itemData name="Maroon" defStyleNum="dsNormal" color="maroon" />
0754       <itemData name="Yellow" defStyleNum="dsNormal" color="yellow" />
0755       <itemData name="Olive" defStyleNum="dsNormal" color="olive" />
0756       <itemData name="Lime" defStyleNum="dsNormal" color="lime" />
0757       <itemData name="Green" defStyleNum="dsNormal" color="green" />
0758       <itemData name="Aqua" defStyleNum="dsNormal" color="aqua" />
0759       <itemData name="Teal" defStyleNum="dsNormal" color="teal" />
0760       <itemData name="Blue" defStyleNum="dsNormal" color="blue" />
0761       <itemData name="Navy" defStyleNum="dsNormal" color="navy" />
0762       <itemData name="Fuchsia" defStyleNum="dsNormal" color="fuchsia" />
0763       <itemData name="Purple" defStyleNum="dsNormal" color="purple" />
0764     </itemDatas>
0765   </highlighting>
0766   <general>
0767     <keywords casesensitive="0" />
0768   </general>
0769 </language>