<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
    <!ENTITY bullet "&#xd7;">
    <!ENTITY envname "[a-zA-Z]+\*?">
]>
<language name="LaTeX" version="20" section="Markup" kateversion="5.79" priority="10" extensions="*.tex;*.ltx;*.dtx;*.sty;*.cls;*.bbx;*.cbx;*.lbx;*.tikz;*.pgf" mimetype="text/x-tex" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Holger Danielsson (holger.danielsson@versanet.de)+Michel Ludwig (michel.ludwig@kdemail.net)+Thomas Braun (thomas.braun@virtuell-zuhause.de)" license="LGPL" >
  <highlighting>
    <!-- NOTE: Keywords of kind "\something" do not need a delimiter before "\".
         Using a DetectChar rule with lookAhead to detect "\" at the beginning
         avoids the requirement of the delimiter in the keyword. -->
    <list name="beginEnv">
      <item>\begin</item>
    </list>

    <list name="endEnv">
      <item>\end</item>
    </list>

    <list name="Label">
      <item>\Autocite</item>
      <item>\autocite</item>
      <item>\autoref</item>
      <item>\Cite</item>
      <item>\cite</item>
      <item>\Citeauthor</item>
      <item>\citeauthor</item>
      <item>\citep</item>
      <item>\citet</item>
      <item>\citetitle</item>
      <item>\citeurl</item>
      <item>\citeyear</item>
      <item>\cref</item>
      <item>\Cref</item>
      <item>\cref*</item>
      <item>\Cref*</item>
      <item>\eqref</item>
      <item>\Footcite</item>
      <item>\footcite</item>
      <item>\footfullcite</item>
      <item>\fullcite</item>
      <item>\label</item>
      <item>\nocite</item>
      <item>\pagecite</item>
      <item>\pageref</item>
      <item>\Parencite</item>
      <item>\parencite</item>
      <item>\ref</item>
      <item>\subref</item>
      <item>\subref*</item>
      <item>\supercite</item>
      <item>\Textcite</item>
      <item>\textcite</item>
      <item>\vpageref</item>
      <item>\vref</item>
    </list>

    <list name="macroFancyLabel">
      <item>\documentclass</item>
      <item>\includegraphics</item>
      <item>\include</item>
      <item>\usepackage</item>
      <item>\bibliography</item>
      <item>\bibliographystyle</item>
    </list>

    <list name="FancyLabel">
      <item>\cites</item>
      <item>\Cites</item>
      <item>\parencites</item>
      <item>\Parencites</item>
      <item>\autocites</item>
      <item>\Autocites</item>
      <item>\supercites</item>
      <item>\footcites</item>
      <item>\Footcites</item>
    </list>

    <list name="Sectioning">
      <item>\part*</item>
      <item>\part</item>
      <item>\chapter*</item>
      <item>\chapter</item>
      <item>\section*</item>
      <item>\section</item>
      <item>\subsection*</item>
      <item>\subsection</item>
      <item>\subsubsection*</item>
      <item>\subsubsection</item>
      <item>\paragraph*</item>
      <item>\paragraph</item>
      <item>\subparagraph*</item>
      <item>\subparagraph</item>
    </list>

    <list name="SpecialCommand">
      <item>\column</item>
      <item>\definecolor</item>
      <item>\geometry</item>
      <item>\hspace*</item>
      <item>\hspace</item>
      <item>\input</item>
      <item>\newboolean</item>
      <item>\rule</item>
      <item>\setboolean</item>
      <item>\setcounter</item>
      <item>\setlength</item>
      <item>\special</item>
      <item>\textcolor</item>
      <item>\vspace*</item>
      <item>\vspace</item>
    </list>

    <list name="Footnoting">
      <item>\footnote*</item>
      <item>\footnote</item>
    </list>

    <list name="NewCommand">
      <item>\renewcommand*</item>
      <item>\renewcommand</item>
      <item>\providecommand*</item>
      <item>\providecommand</item>
      <item>\newcommand*</item>
      <item>\newcommand</item>
    </list>

    <list name="DefCommand">
      <item>\edef</item>
      <item>\gdef</item>
      <item>\xdef</item>
    </list>

    <list name="MathModeEnsure">
      <item>\ensuremath</item>
    </list>

    <list name="iffalse">
      <item>\iffalse</item>
    </list>

    <list name="iffalseend">
      <item>\fi</item>
      <item>\else</item>
    </list>

    <list name="Verb">
      <item>verb*</item>
      <item>verb</item>
      <item>Verb</item>
    </list>

    <list name="Lstinline">
      <item>lstinline</item>
    </list>

    <list name="MintParam">
      <item>mint</item>
    </list>

    <list name="ListingsEnv">
      <item>lstlisting*</item>
      <item>lstlisting</item>
    </list>

    <list name="MintedEnv">
      <item>minted*</item>
      <item>minted</item>
    </list>

    <list name="MintedCodeLang">
      <!-- ABAP lexers -->
      <item>abapcode*</item>
      <item>abapcode</item>
      <!-- ActionScript 2.0 lexers -->
      <item>actionscriptcode*</item>
      <item>actionscriptcode</item>
      <item>ascode*</item>
      <item>ascode</item>
      <!-- Ada lexers -->
      <item>adacode*</item>
      <item>adacode</item>
      <!-- Agda lexers -->
      <item>agdacode*</item>
      <item>agdacode</item>
      <!-- Apache Configuration lexers -->
      <item>apacheconfcode*</item>
      <item>apacheconfcode</item>
      <item>aconfcode*</item>
      <item>aconfcode</item>
      <item>apachecode*</item>
      <item>apachecode</item>
      <!-- AutoHotKey lexers -->
      <item>autohotkeycode*</item>
      <item>autohotkeycode</item>
      <item>ahkcode*</item>
      <item>ahkcode</item>
      <!-- AWK lexers -->
      <item>awkcode*</item>
      <item>awkcode</item>
      <item>gawkcode*</item>
      <item>gawkcode</item>
      <item>mawkcode*</item>
      <item>mawkcode</item>
      <item>nawkcode*</item>
      <item>nawkcode</item>
      <!-- Bash lexers -->
      <item>bashcode*</item>
      <item>bashcode</item>
      <item>shcode*</item>
      <item>shcode</item>
      <item>kshcode*</item>
      <item>kshcode</item>
      <item>zshcode*</item>
      <item>zshcode</item>
      <item>shellcode*</item>
      <item>shellcode</item>
      <!-- BibTeX lexers -->
      <item>bibtexcode*</item>
      <item>bibtexcode</item>
      <item>bibcode*</item>
      <item>bibcode</item>
      <!-- Boo lexers -->
      <item>boocode*</item>
      <item>boocode</item>
      <!-- C lexers -->
      <item>ccode*</item>
      <item>ccode</item>
      <!-- CMake lexers -->
      <item>cmakecode*</item>
      <item>cmakecode</item>
      <!-- C# lexers -->
      <item>csharpcode*</item>
      <item>csharpcode</item>
      <item>cscode*</item>
      <item>cscode</item>
      <!-- Clojure lexers -->
      <item>clojurecode*</item>
      <item>clojurecode</item>
      <item>cljcode*</item>
      <item>cljcode</item>
      <!-- CoffeeScript lexers -->
      <item>coffeecode*</item>
      <item>coffeecode</item>
      <!-- Common Lisp lexers -->
      <item>commonlispcode*</item>
      <item>commonlispcode</item>
      <item>clcode*</item>
      <item>clcode</item>
      <item>lispcode*</item>
      <item>lispcode</item>
      <!-- C++ lexers -->
      <item>cppcode*</item>
      <item>cppcode</item>
      <!-- CSS lexers -->
      <item>csscode*</item>
      <item>csscode</item>
      <!-- D lexers -->
      <item>dcode*</item>
      <item>dcode</item>
      <!-- Dart lexers -->
      <item>dartcode*</item>
      <item>dartcode</item>
      <!-- Pascal lexers -->
      <item>delphicode*</item>
      <item>delphicode</item>
      <item>pascode*</item>
      <item>pascode</item>
      <item>pascalcode*</item>
      <item>pascalcode</item>
      <item>objectpascalcode*</item>
      <item>objectpascalcode</item>
      <!-- Diff lexers -->
      <item>diffcode*</item>
      <item>diffcode</item>
      <item>udiffcode*</item>
      <item>udiffcode</item>
      <!-- DTD lexers -->
      <item>dtdcode*</item>
      <item>dtdcode</item>
      <!-- Eiffel lexers -->
      <item>eiffelcode*</item>
      <item>eiffelcode</item>
      <!-- Elixir lexers -->
      <item>elixircode*</item>
      <item>elixircode</item>
      <item>excode*</item>
      <item>excode</item>
      <item>exscode*</item>
      <item>exscode</item>
      <!-- Elm lexers -->
      <item>elmcode*</item>
      <item>elmcode</item>
      <!-- Email lexers -->
      <item>emailcode*</item>
      <item>emailcode</item>
      <item>emlcode*</item>
      <item>emlcode</item>
      <!-- Erlang lexers -->
      <item>erlangcode*</item>
      <item>erlangcode</item>
      <!-- Fish lexers -->
      <item>fishcode*</item>
      <item>fishcode</item>
      <item>fishshellcode*</item>
      <item>fishshellcode</item>
      <!-- ANS-Forth94 lexers -->
      <item>forthcode*</item>
      <item>forthcode</item>
      <!-- Fortran (Fixed Format) lexers -->
      <item>fortranfixedcode*</item>
      <item>fortranfixedcode</item>
      <!-- Fortran (Free Format) lexers -->
      <item>fortrancode*</item>
      <item>fortrancode</item>
      <item>fcode*</item>
      <item>fcode</item>
      <!-- GAP lexers -->
      <item>gapcode*</item>
      <item>gapcode</item>
      <!-- Godot lexers -->
      <item>gdscriptcode*</item>
      <item>gdscriptcode</item>
      <item>gdcode*</item>
      <item>gdcode</item>
      <!-- GLSL lexers -->
      <item>glslcode*</item>
      <item>glslcode</item>
      <!-- G-Code lexers -->
      <item>gcodecode*</item>
      <item>gcodecode</item>
      <!-- Gnuplot lexers -->
      <item>gnuplotcode*</item>
      <item>gnuplotcode</item>
      <!-- Go lexers -->
      <item>gocode*</item>
      <item>gocode</item>
      <item>golangcode*</item>
      <item>golangcode</item>
      <!-- Groovy lexers -->
      <item>groovycode*</item>
      <item>groovycode</item>
      <!-- Haml lexers -->
      <item>hamlcode*</item>
      <item>hamlcode</item>
      <!-- Haskell lexers -->
      <item>haskellcode*</item>
      <item>haskellcode</item>
      <item>hscode*</item>
      <item>hscode</item>
      <!-- Haxe lexers -->
      <item>haxecode*</item>
      <item>haxecode</item>
      <item>hxslcode*</item>
      <item>hxslcode</item>
      <item>hxcode*</item>
      <item>hxcode</item>
      <!-- HTML lexers -->
      <item>htmlcode*</item>
      <item>htmlcode</item>
      <!-- IDL lexers -->
      <item>idlcode*</item>
      <item>idlcode</item>
      <!-- Idris lexers -->
      <item>idriscode*</item>
      <item>idriscode</item>
      <item>idrcode*</item>
      <item>idrcode</item>
      <!-- Inform lexers -->
      <item>informcode*</item>
      <item>informcode</item>
      <item>icode*</item>
      <item>icode</item>
      <!-- INI Files lexers -->
      <item>inicode*</item>
      <item>inicode</item>
      <item>cfgcode*</item>
      <item>cfgcode</item>
      <item>dosinicode*</item>
      <item>dosinicode</item>
      <!-- J lexers -->
      <item>jcode*</item>
      <item>jcode</item>
      <!-- Java lexers -->
      <item>javacode*</item>
      <item>javacode</item>
      <!-- JavaScript lexers -->
      <item>javascriptcode*</item>
      <item>javascriptcode</item>
      <item>jscode*</item>
      <item>jscode</item>
      <!-- JCL lexers -->
      <item>jclcode*</item>
      <item>jclcode</item>
      <!-- JSON lexers -->
      <item>jsoncode*</item>
      <item>jsoncode</item>
      <item>jsonobjectcode*</item>
      <item>jsonobjectcode</item>
      <!-- Julia lexers -->
      <item>juliacode*</item>
      <item>juliacode</item>
      <item>jlcode*</item>
      <item>jlcode</item>
      <!-- Kconfig lexers -->
      <item>kconfigcode*</item>
      <item>kconfigcode</item>
      <item>menuconfigcode*</item>
      <item>menuconfigcode</item>
      <item>linuxconfigcode*</item>
      <item>linuxconfigcode</item>
      <item>kernelconfigcode*</item>
      <item>kernelconfigcode</item>
      <!-- Kotlin lexers -->
      <item>kotlincode*</item>
      <item>kotlincode</item>
      <!-- LSL lexers -->
      <item>lslcode*</item>
      <item>lslcode</item>
      <!-- LESSCSS lexers -->
      <item>lesscode*</item>
      <item>lesscode</item>
      <!-- LilyPond lexers -->
      <item>lilypondcode*</item>
      <item>lilypondcode</item>
      <!-- Literate Haskell lexers -->
      <item>literatehaskellcode*</item>
      <item>literatehaskellcode</item>
      <item>lhaskellcode*</item>
      <item>lhaskellcode</item>
      <item>lhscode*</item>
      <item>lhscode</item>
      <!-- LLVM lexers -->
      <item>llvmcode*</item>
      <item>llvmcode</item>
      <!-- Logtalk lexers -->
      <item>logtalkcode*</item>
      <item>logtalkcode</item>
      <!-- Lua lexers -->
      <item>luacode*</item>
      <item>luacode</item>
      <!-- Makefile lexers -->
      <item>makecode*</item>
      <item>makecode</item>
      <item>makefilecode*</item>
      <item>makefilecode</item>
      <item>mfcode*</item>
      <item>mfcode</item>
      <item>bsdmakecode*</item>
      <item>bsdmakecode</item>
      <!-- Mako lexers -->
      <item>makocode*</item>
      <item>makocode</item>
      <!-- Markdown lexers -->
      <item>markdowncode*</item>
      <item>markdowncode</item>
      <item>mdcode*</item>
      <item>mdcode</item>
      <!-- Mason lexers -->
      <item>masoncode*</item>
      <item>masoncode</item>
      <!-- Mathematica lexers -->
      <item>mathematicacode*</item>
      <item>mathematicacode</item>
      <item>mmacode*</item>
      <item>mmacode</item>
      <item>nbcode*</item>
      <item>nbcode</item>
      <!-- Matlab lexers -->
      <item>matlabcode*</item>
      <item>matlabcode</item>
      <!-- Maxima lexers -->
      <item>maximacode*</item>
      <item>maximacode</item>
      <item>macsymacode*</item>
      <item>macsymacode</item>
      <!-- Meson lexers -->
      <item>mesoncode*</item>
      <item>mesoncode</item>
      <item>mesonbuildcode*</item>
      <item>mesonbuildcode</item>
      <!-- Modelica lexers -->
      <item>modelicacode*</item>
      <item>modelicacode</item>
      <!-- Modula-2 lexers -->
      <item>modulacode*</item>
      <item>modulacode</item>
      <item>mcode*</item>
      <item>mcode</item>
      <!-- SQL (MySQL) lexers -->
      <item>mysqlcode*</item>
      <item>mysqlcode</item>
      <!-- NSIS lexers -->
      <item>nsiscode*</item>
      <item>nsiscode</item>
      <item>nsicode*</item>
      <item>nsicode</item>
      <item>nshcode*</item>
      <item>nshcode</item>
      <!-- Intel x86 (NASM) lexers -->
      <item>nasmcode*</item>
      <item>nasmcode</item>
      <!-- Nemerle lexers -->
      <item>nemerlecode*</item>
      <item>nemerlecode</item>
      <!-- nesC lexers -->
      <item>nesccode*</item>
      <item>nesccode</item>
      <!-- Nim lexers -->
      <item>nimrodcode*</item>
      <item>nimrodcode</item>
      <item>nimcode*</item>
      <item>nimcode</item>
      <!-- Nix lexers -->
      <item>nixoscode*</item>
      <item>nixoscode</item>
      <item>nixcode*</item>
      <item>nixcode</item>
      <!-- Objective-C lexers -->
      <item>objectiveccode*</item>
      <item>objectiveccode</item>
      <item>objccode*</item>
      <item>objccode</item>
      <!-- Objective-C++ lexers -->
      <item>objectivecppcode*</item>
      <item>objectivecppcode</item>
      <item>objcppcode*</item>
      <item>objcppcode</item>
      <!-- Objective Caml lexers -->
      <item>ocamlcode*</item>
      <item>ocamlcode</item>
      <!-- Octave lexers -->
      <item>octavecode*</item>
      <item>octavecode</item>
      <!-- Perl lexers -->
      <item>perlcode*</item>
      <item>perlcode</item>
      <item>plcode*</item>
      <item>plcode</item>
      <!-- PHP/PHP lexers -->
      <item>phpcode*</item>
      <item>phpcode</item>
      <!-- Pig lexers -->
      <item>pigcode*</item>
      <item>pigcode</item>
      <!-- Pike lexers -->
      <item>pikecode*</item>
      <item>pikecode</item>
      <!-- Pony lexers -->
      <item>ponycode*</item>
      <item>ponycode</item>
      <!-- PostScript lexers -->
      <item>postscriptcode*</item>
      <item>postscriptcode</item>
      <item>postscrcode*</item>
      <item>postscrcode</item>
      <!-- POV-Ray lexers -->
      <item>povcode*</item>
      <item>povcode</item>
      <!-- PowerShell lexers -->
      <item>powershellcode*</item>
      <item>powershellcode</item>
      <item>pwshcode*</item>
      <item>pwshcode</item>
      <item>poshcode*</item>
      <item>poshcode</item>
      <item>pscode*</item>
      <item>pscode</item>
      <item>psmcode*</item>
      <item>psmcode</item>
      <!-- Praat lexers -->
      <item>praatcode*</item>
      <item>praatcode</item>
      <!-- Prolog lexers -->
      <item>prologcode*</item>
      <item>prologcode</item>
      <!-- Protobuf lexers -->
      <item>protobufcode*</item>
      <item>protobufcode</item>
      <item>protocode*</item>
      <item>protocode</item>
      <!-- Pug lexers -->
      <item>pugcode*</item>
      <item>pugcode</item>
      <item>jadecode*</item>
      <item>jadecode</item>
      <!-- Puppet lexers -->
      <item>puppetcode*</item>
      <item>puppetcode</item>
      <!-- Python lexers -->
      <item>pythoncode*</item>
      <item>pythoncode</item>
      <item>pycode*</item>
      <item>pycode</item>
      <item>sagecode*</item>
      <item>sagecode</item>
      <!-- QML lexers -->
      <item>qmlcode*</item>
      <item>qmlcode</item>
      <item>qbscode*</item>
      <item>qbscode</item>
      <!-- RelaxNG-Compact lexers -->
      <item>rngcompactcode*</item>
      <item>rngcompactcode</item>
      <item>rnccode*</item>
      <item>rnccode</item>
      <!-- RPM Spec lexers -->
      <item>speccode*</item>
      <item>speccode</item>
      <!-- Racket lexers -->
      <item>racketcode*</item>
      <item>racketcode</item>
      <item>rktcode*</item>
      <item>rktcode</item>
      <!-- REXX lexers -->
      <item>rexxcode*</item>
      <item>rexxcode</item>
      <item>arexxcode*</item>
      <item>arexxcode</item>
      <!-- Ruby/Rails/RHTML lexers -->
      <item>rhtmlcode*</item>
      <item>rhtmlcode</item>
      <item>htmlerbcode*</item>
      <item>htmlerbcode</item>
      <item>htmlrubycode*</item>
      <item>htmlrubycode</item>
      <!-- reStructuredText lexers -->
      <item>rstcode*</item>
      <item>rstcode</item>
      <item>restcode*</item>
      <item>restcode</item>
      <!-- Ruby lexers -->
      <item>rubycode*</item>
      <item>rubycode</item>
      <item>rbcode*</item>
      <item>rbcode</item>
      <item>dubycode*</item>
      <item>dubycode</item>
      <!-- Rust lexers -->
      <item>rustcode*</item>
      <item>rustcode</item>
      <item>rscode*</item>
      <item>rscode</item>
      <!-- SML lexers -->
      <item>smlcode*</item>
      <item>smlcode</item>
      <!-- SASS lexers -->
      <item>sasscode*</item>
      <item>sasscode</item>
      <!-- Scala lexers -->
      <item>scalacode*</item>
      <item>scalacode</item>
      <!-- Scheme lexers -->
      <item>schemecode*</item>
      <item>schemecode</item>
      <item>scmcode*</item>
      <item>scmcode</item>
      <!-- scilab lexers -->
      <item>scilabcode*</item>
      <item>scilabcode</item>
      <!-- SCSS lexers -->
      <item>scsscode*</item>
      <item>scsscode</item>
      <!-- sed lexers -->
      <item>sedcode*</item>
      <item>sedcode</item>
      <item>gsedcode*</item>
      <item>gsedcode</item>
      <item>ssedcode*</item>
      <item>ssedcode</item>
      <!-- Sieve lexers -->
      <item>sievecode*</item>
      <item>sievecode</item>
      <!-- Smali lexers -->
      <item>smalicode*</item>
      <item>smalicode</item>
      <!-- Solidity lexers -->
      <item>soliditycode*</item>
      <item>soliditycode</item>
      <!-- Spice lexers -->
      <item>spicecode*</item>
      <item>spicecode</item>
      <item>spicelangcode*</item>
      <item>spicelangcode</item>
      <!-- SQL lexers -->
      <item>sqlcode*</item>
      <item>sqlcode</item>
      <!-- Stan lexers -->
      <item>stancode*</item>
      <item>stancode</item>
      <!-- Stata lexers -->
      <item>statacode*</item>
      <item>statacode</item>
      <item>docode*</item>
      <item>docode</item>
      <!-- Swift lexers -->
      <item>swiftcode*</item>
      <item>swiftcode</item>
      <!-- SystemVerilog lexers -->
      <item>systemverilogcode*</item>
      <item>systemverilogcode</item>
      <item>svcode*</item>
      <item>svcode</item>
      <!-- TOML lexers -->
      <item>tomlcode*</item>
      <item>tomlcode</item>
      <!-- TADS 3 lexers -->
      <item>tadscode*</item>
      <item>tadscode</item>
      <!-- Tcl/Tk lexers -->
      <item>tclcode*</item>
      <item>tclcode</item>
      <!-- Tcsh lexers -->
      <item>tcshcode*</item>
      <item>tcshcode</item>
      <item>cshcode*</item>
      <item>cshcode</item>
      <!-- Terraform lexers -->
      <item>terraformcode*</item>
      <item>terraformcode</item>
      <item>tfcode*</item>
      <item>tfcode</item>
      <!-- LaTeX lexers -->
      <item>texcode*</item>
      <item>texcode</item>
      <item>latexcode*</item>
      <item>latexcode</item>
      <!-- Todo.txt lexers -->
      <item>todotxtcode*</item>
      <item>todotxtcode</item>
      <!-- TypeScript lexers -->
      <item>typescriptcode*</item>
      <item>typescriptcode</item>
      <item>tscode*</item>
      <item>tscode</item>
      <!-- Vala lexers -->
      <item>valacode*</item>
      <item>valacode</item>
      <item>vapicode*</item>
      <item>vapicode</item>
      <!-- Velocity lexers -->
      <item>velocitycode*</item>
      <item>velocitycode</item>
      <!-- Verilog lexers -->
      <item>verilogcode*</item>
      <item>verilogcode</item>
      <item>vcode*</item>
      <item>vcode</item>
      <!-- VHDL lexers -->
      <item>vhdlcode*</item>
      <item>vhdlcode</item>
      <!-- XML lexers -->
      <item>xmlcode*</item>
      <item>xmlcode</item>
      <!-- x.org Configuration lexers -->
      <item>xorgconfcode*</item>
      <item>xorgconfcode</item>
      <!-- xslt lexers -->
      <item>xsltcode*</item>
      <item>xsltcode</item>
      <!-- YAML lexers -->
      <item>yamlcode*</item>
      <item>yamlcode</item>
      <!-- YANG lexers -->
      <item>yangcode*</item>
      <item>yangcode</item>
      <!-- Mako lexers -->
    </list>

    <list name="VerbatimEnv">
      <item>Verbatim*</item>
      <item>Verbatim</item>
      <item>BVerbatim*</item>
      <item>BVerbatim</item>
      <item>LVerbatim*</item>
      <item>LVerbatim</item>
      <item>verbatim*</item>
      <item>verbatim</item>
      <item>boxedverbatim*</item>
      <item>boxedverbatim</item>
    </list>

    <list name="CommentEnv">
      <item>comment*</item>
      <item>comment</item>
    </list>

    <list name="MathEnvParam">
      <item>alignat*</item>
      <item>alignat</item>
      <item>xalignat*</item>
      <item>xalignat</item>
      <item>xxalignat*</item>
      <item>xxalignat</item>
    </list>

    <list name="MathEnv">
      <item>Bmatrix*</item>
      <item>Bmatrix</item>
      <item>IEEEeqnarray*</item>
      <item>IEEEeqnarray</item>
      <item>IEEEeqnarraybox*</item>
      <item>IEEEeqnarraybox</item>
      <item>Vmatrix*</item>
      <item>Vmatrix</item>
      <item>align*</item>
      <item>align</item>
      <item>bmatrix*</item>
      <item>bmatrix</item>
      <item>cases*</item>
      <item>cases</item>
      <item>displaymath*</item>
      <item>displaymath</item>
      <item>eqnarray*</item>
      <item>eqnarray</item>
      <item>equation*</item>
      <item>equation</item>
      <item>flalign*</item>
      <item>flalign</item>
      <item>gather*</item>
      <item>gather</item>
      <item>math*</item>
      <item>math</item>
      <item>multline*</item>
      <item>multline</item>
      <item>pmatrix*</item>
      <item>pmatrix</item>
      <item>smallmatrix*</item>
      <item>smallmatrix</item>
      <item>subeqnarray*</item>
      <item>subeqnarray</item>
      <item>vmatrix*</item>
      <item>vmatrix</item>
    </list>

    <list name="TabEnv">
      <item>tabularx*</item>
      <item>tabularx</item>
      <item>tabular*</item>
      <item>tabular</item>
      <item>supertabular*</item>
      <item>supertabular</item>
      <item>mpsupertabular*</item>
      <item>mpsupertabular</item>
      <item>xtabular*</item>
      <item>xtabular</item>
      <item>mpxtabular*</item>
      <item>mpxtabular</item>
      <item>longtable*</item>
      <item>longtable</item>
    </list>

    <list name="MathModeText">
      <item>\text</item>
      <item>\textit</item>
      <item>\textbf</item>
      <item>\textmd</item>
      <item>\textsl</item>
      <item>\textsc</item>
      <item>\textrm</item>
      <item>\textsf</item>
      <item>\texttt</item>
      <item>\textup</item>
      <item>\textlf</item>
      <item>\textnormal</item>
      <item>\shortintertext</item>
      <item>\intertext</item>
      <item>\mbox</item>
      <item>\emph</item>
    </list>

    <list name="ResetHL">
      <item>\KileResetHL</item>
      <item>\KateResetHL</item>
    </list>

    <contexts>
      <!-- Normal text -->
      <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="\" attribute="Normal Text" context="LatexMacro" lookAhead="true"/>
        <DetectChar char="$" attribute="Math" context="MathModeTex"/>
        <RegExpr String="^&lt;&lt;.*&gt;&gt;=" attribute="Normal Text" context="NoWeb" column="0"/>
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
      </context>

      <context name="LatexMacro" attribute="Normal Text" lineEndContext="#pop">
        <keyword String="beginEnv" attribute="Structure" context="#pop!FindBeginEnvironment" beginRegion="block"/>
        <keyword String="endEnv" attribute="Structure" context="#pop!FindEndEnvironment"/>
        <keyword String="Label" attribute="Structure" context="#pop!Label"/>
        <keyword String="macroFancyLabel" attribute="Builtin Macro" context="#pop!FancyLabel"/>
        <keyword String="FancyLabel" attribute="Structure" context="#pop!FancyLabel"/>
        <keyword String="Sectioning" attribute="Structure" context="#pop!Sectioning"/>
        <keyword String="SpecialCommand" attribute="Macro" context="#pop!SpecialCommand"/>
        <keyword String="Footnoting" attribute="Macro" context="#pop!Footnoting"/>
        <keyword String="NewCommand" attribute="Macro" context="#pop!NewCommand"/>
        <keyword String="DefCommand" attribute="Macro" context="#pop!DefCommand"/>
        <Detect2Chars char="\" char1="(" attribute="Math" context="#pop!MathModeLatex"/>
        <Detect2Chars char="\" char1="[" attribute="Math" context="#pop!MathModeLatexEquation" beginRegion="mathMode"/>
        <keyword String="MathModeEnsure" attribute="Math" context="#pop!MathModeEnsure"/>
        <keyword String="iffalse" attribute="Comment" context="#pop!Multiline Comment"/>
        <DetectChar char="\" attribute="Macro" context="#pop!ContrSeq"/>
      </context>

      <!-- NoWeb -->
      <context name="NoWeb" attribute="Normal Text" lineEndContext="#stay">
        <RegExpr String="^@\s*$" attribute="Normal Text" context="#pop" column="0"/>
      </context>

      <!-- LaTeX sectioning commands -->
      <context name="Sectioning" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop">
        <DetectSpaces/>
        <RangeDetect char="[" char1="]" attribute="Normal Text" context="#stay"/>
        <DetectChar char="{" attribute="Normal Text" context="SectioningInside"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="SectioningInside" attribute="Sectioning Text" lineEndContext="#stay">
        <DetectChar char="{" attribute="Normal Text" context="SectioningInside"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop"/>
        <Detect2Chars char="\" char1="(" attribute="Sectioning Math" context="SectioningMathMode" />
        <DetectChar char="\" attribute="Sectioning Macro" context="SectioningContrSeq"/>
        <DetectChar char="$" attribute="Sectioning Math" context="SectioningMathMode" />
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
      </context>
      <context name="SectioningContrSeq" attribute="Macro" lineEndContext="#pop">
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="[a-zA-Z]+(?:\+?|\*{0,3})|." attribute="Sectioning Macro" context="#pop" />
      </context>
      <context name="SectioningMathMode" attribute="Sectioning Math" lineEndContext="#stay">
        <Detect2Chars char="$" char1="$" attribute="Error" context="#stay" />
        <DetectChar char="$" attribute="Sectioning Math" context="#pop" />
        <Detect2Chars char="\" char1=")" attribute="Sectioning Math" context="#pop" />
        <Detect2Chars char="\" char1="]" attribute="Error" context="#stay" />
        <DetectChar char="\" attribute="Sectioning Macro Mathmode" context="SectioningMathContrSeq"/>
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
      </context>
      <context name="SectioningMathContrSeq" attribute="Sectioning Macro Mathmode" lineEndContext="#pop">
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="&envname;|." attribute="Sectioning Macro Mathmode" context="#pop" />
      </context>

      <!-- LaTeX Footnote commands -->
      <context name="Footnoting" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop">
        <DetectSpaces/>
        <RangeDetect char="[" char1="]" attribute="Normal Text" context="#stay"/>
        <DetectChar char="{" attribute="Normal Text" context="FootnotingInside"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="FootnotingInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="{" attribute="Normal Text" context="FootnotingInside"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop"/>
        <IncludeRules context="Normal Text"/>
      </context>

      <!-- LaTeX commands \newcommand and \renewcommand -->
      <context name="NewCommand" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="LabelParameter"/>
        <RegExpr String="(?:\[\d\](?:\[[^\]]*\])?)?\{" attribute="Normal Text" context="LabelParameter"/>
        <DetectChar char="}" attribute="Error" context="#pop"/>
      </context>

      <!-- LaTeX command \def -->
      <context name="DefCommand" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop">
        <DetectSpaces/>
        <RegExpr String="\\[a-zA-Z]+[^\{]*\{" attribute="Normal Text" context="#pop!CommandParameter"/>
        <DetectChar char="}" attribute="Error" context="#pop"/>
      </context>

      <!-- parse command argument -->
      <context name="CommandParameter" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="{" attribute="Normal Text" context="CommandParameter"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop"/>
        <RegExpr String="\\." attribute="Normal Text" context="#stay"/>
        <IncludeRules context="FindComments"/>
      </context>

      <!-- LaTeX command in text mode -->
      <context name="ContrSeq" attribute="Macro" lineEndContext="#pop">
        <keyword String="Verb" attribute="Macro" context="Verb"/>
        <keyword String="Lstinline" attribute="Macro" context="Lstinline"/>
        <keyword String="MintParam" attribute="Macro" context="MintParam"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="[a-zA-Z@]+(?:\+?|\*{0,3})|." attribute="Macro" context="#pop" />
      </context>

      <!-- \mint command with parameter-->
      <context name="MintParam" attribute="Normal Text" lineEndContext="#stay">
        <Detect2Chars char="}" char1="[" attribute="Normal Text" context="#stay"/>
        <AnyChar String="}]" attribute="Normal Text" context="Verb"/>
      </context>

      <!-- verb command -->
      <context name="Verb" attribute="Verbatim" lineEndContext="#pop#pop" >
        <RegExpr String="(.)" attribute="Normal Text" context="VerbEnd" />
      </context>
      <context name="VerbEnd" attribute="Verbatim" lineEndContext="#pop#pop#pop" dynamic="true" >
        <StringDetect String="%1" attribute="Normal Text" context="#pop#pop#pop" dynamic="true" />
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="[^%1\xd7]*" attribute="Verbatim" context="#stay" dynamic="true" />
      </context>

      <!-- lstinline command, different from verb as it takes options -->
      <context name="Lstinline" attribute="Verbatim" lineEndContext="#pop#pop" >
        <DetectSpaces/>
        <DetectChar char="[" attribute="Normal Text" context="FancyLabelOption"/>
        <DetectChar char="{" attribute="Normal Text" context="LstinlineParameter"/>
        <RegExpr String="(.)" attribute="Normal Text" context="LstinlineEnd" />
      </context>
      <context name="LstinlineEnd" attribute="Verbatim" lineEndContext="#pop#pop#pop" dynamic="true" >
        <!-- TODO DetectChar segfault -->
        <StringDetect String="%1" attribute="Normal Text" context="#pop#pop#pop" dynamic="true" />
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="[^%1\xd7]*" attribute="Verbatim" context="#stay" dynamic="true" />
      </context>
      <context name="LstinlineParameter" attribute="Verbatim" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop"/>
      </context>

      <!-- label -->
      <context name="Label" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="LabelParameter"/>
        <DetectChar char="[" attribute="Normal Text" context="LabelOption"/>
      </context>

      <context name="LabelOption" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeLatex"/>
        <DetectChar char="\" attribute="Macro" context="ContrSeq"/>
        <DetectChar char="$" attribute="Math" context="MathModeTex" />
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <DetectChar char="]" attribute="Normal Text" context="#pop"/>
      </context>

      <context name="LabelParameter" attribute="Reference" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop"/>
      </context>

      <!-- labels from biblatex commands -->
      <context name="FancyLabel" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="FancyLabelParameter"/>
        <DetectChar char="[" attribute="Normal Text" context="FancyLabelOption"/>
        <DetectChar char="(" attribute="Normal Text" context="FancyLabelRoundBrackets"/>
      </context>

      <context name="FancyLabelParameter" attribute="Environment" lineEndContext="#stay">
        <DetectSpaces/>
        <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeLatex"/>
        <DetectChar char="\" attribute="Macro" context="ContrSeq"/>
        <DetectChar char="$" attribute="Math" context="MathModeTex" />
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop"/>
        <DetectChar char="{" attribute="Normal Text" context="FancyLabelParameter"/>
      </context>

      <context name="FancyLabelOption" attribute="Option Text" lineEndContext="#stay">
        <IncludeRules context="LabelOption"/>
      </context>

      <context name="FancyLabelRoundBrackets" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeLatex" />
        <DetectChar char="\" attribute="Macro" context="ContrSeq"/>
        <DetectChar char="$" attribute="Math" context="MathModeTex" />
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <DetectChar char=")" attribute="Normal Text" context="#pop"/>
      </context>

      <!-- Special commands -->
      <context name="SpecialCommand" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="SpecialCommandParameterOption"/>
      </context>

      <context name="SpecialCommandParameterOption" attribute="Option Text" lineEndContext="#stay">
        <DetectSpaces/>
        <Detect2Chars char="\" char1="(" attribute="Math" context="MathModeLatex" />
        <DetectChar char="\" attribute="Macro" context="ContrSeq"/>
        <DetectChar char="$" attribute="Math" context="MathModeTex" />
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop"/>
        <DetectChar char="{" attribute="Normal Text" context="SpecialCommandParameterOption"/>
      </context>

      <!-- end of an environment -->
      <context name="FindEndEnvironment" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="{" attribute="Normal Text" context="EndEnvironment"/>
        <RegExpr String="\S" attribute="Normal Text" context="#pop"/>
      </context>

      <context name="EndEnvironment" attribute="Environment" lineEndContext="#stay">
        <RegExpr String="&envname;" attribute="Environment" context="LatexEnvEnd"/>
        <RegExpr String="." attribute="Error" context="#pop#pop"/>
      </context>

      <context name="LatexEnvEnd" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" endRegion="block" context="#pop#pop#pop"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>

      <!-- start of an environment -->
      <context name="FindBeginEnvironment" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="BeginEnvironment"/>
        <RegExpr String="." attribute="Normal Text" context="#pop"/>
      </context>

      <!-- filter the environment name and check the type -->
      <context name="BeginEnvironment" attribute="Environment" lineEndContext="#stay">
        <keyword String="ListingsEnv" attribute="Environment" context="ListingsEnv"/>
        <keyword String="MintedEnv" attribute="Environment" context="MintedEnv"/>
        <keyword String="VerbatimEnv" attribute="Environment" context="VerbatimEnv" lookAhead="true"/>
        <keyword String="CommentEnv" attribute="Environment" context="CommentEnv"/>
        <keyword String="MathEnvParam" attribute="Environment" context="MathEnvWithParam"/>
        <keyword String="MathEnv" attribute="Environment" context="MathEnv"/>
        <keyword String="TabEnv" attribute="Environment" context="TabEnv"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="(\w+)code\b" attribute="Environment" context="MintedCodeEnv" lookAhead="true"/>
        <RegExpr String="&envname;" attribute="Environment" context="LatexEnv"/>
        <RegExpr String="." attribute="Error" context="#pop"/>
      </context>

      <!-- environment type 1: normal -->
      <context name="LatexEnv" attribute="Error" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop"/>
      </context>

      <context name="VerbatimEnv" attribute="Environment" lineEndContext="#stay">
        <WordDetect String="verbatim*" attribute="Environment" context="VerbatimEnv1"/>
        <WordDetect String="verbatim" attribute="Environment" context="VerbatimEnv1"/>
        <WordDetect String="boxedverbatim*" attribute="Environment" context="VerbatimEnv2"/>
        <WordDetect String="boxedverbatim" attribute="Environment" context="VerbatimEnv2"/>

        <WordDetect String="Verbatim*" attribute="Environment" context="VerbatimEnv3"/>
        <WordDetect String="Verbatim" attribute="Environment" context="VerbatimEnv3"/>
        <WordDetect String="BVerbatim*" attribute="Environment" context="VerbatimEnv4"/>
        <WordDetect String="BVerbatim" attribute="Environment" context="VerbatimEnv4"/>
        <WordDetect String="LVerbatim*" attribute="Environment" context="VerbatimEnv5"/>
        <WordDetect String="LVerbatim" attribute="Environment" context="VerbatimEnv5"/>
      </context>

      <!-- environment type 2: verbatim without parameter -->
      <context name="VerbatimEnv1" attribute="Error" lineEndContext="#stay" fallthroughContext="#pop#pop#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="Verbatim1"/>
      </context>
      <context name="Verbatim1" attribute="Verbatim" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="\\end(?=\s*\{verbatim\*?\})" attribute="Structure" context="VerbFindEnd"/>
      </context>

      <context name="VerbatimEnv2" attribute="Error" lineEndContext="#stay" fallthroughContext="#pop#pop#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="Verbatim2"/>
      </context>
      <context name="Verbatim2" attribute="Verbatim" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="\\end(?=\s*\{boxedverbatim\*?\})" attribute="Structure" context="VerbFindEnd"/>
      </context>

      <!-- environment type 3: verbatim with optional parameter -->
      <context name="VerbatimEnv3" attribute="Error" lineEndContext="#stay" fallthroughContext="#pop#pop#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="VerbatimEnv3Param"/>
      </context>
      <context name="VerbatimEnv3Param" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!Verbatim3">
        <DetectSpaces/>
        <RangeDetect char="[" char1="]" attribute="Normal Text" context="#pop!Verbatim3"/>
      </context>
      <context name="Verbatim3" attribute="Verbatim" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="\\end(?=\s*\{Verbatim\*?\})" attribute="Structure" context="VerbFindEnd"/>
      </context>

      <context name="VerbatimEnv4" attribute="Error" lineEndContext="#stay" fallthroughContext="#pop#pop#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="VerbatimEnv4Param"/>
      </context>
      <context name="VerbatimEnv4Param" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!Verbatim4">
        <DetectSpaces/>
        <RangeDetect char="[" char1="]" attribute="Normal Text" context="#pop!Verbatim4"/>
      </context>
      <context name="Verbatim4" attribute="Verbatim" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="\\end(?=\s*\{BVerbatim\*?\})" attribute="Structure" context="VerbFindEnd"/>
      </context>

      <context name="VerbatimEnv5" attribute="Error" lineEndContext="#stay" fallthroughContext="#pop#pop#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="VerbatimEnv5Param"/>
      </context>
      <context name="VerbatimEnv5Param" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="#pop!Verbatim5">
        <DetectSpaces/>
        <RangeDetect char="[" char1="]" attribute="Normal Text" context="#pop!Verbatim5"/>
      </context>
      <context name="Verbatim5" attribute="Verbatim" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="\\end(?=\s*\{LVerbatim\*?\})" attribute="Structure" context="VerbFindEnd"/>
      </context>

      <!-- environment type 4: listings environment with optional parameter and HL switching-->
      <context name="ListingsEnv" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="#pop!ListingsEnvParam"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>
      <context name="ListingsEnvParam" attribute="Normal Text" lineEndContext="#pop!UnknownHighlighting" fallthroughContext="#pop!UnknownHighlighting">
        <DetectSpaces/>
        <DetectChar char="[" attribute="Normal Text" context="#pop!ListingsEnvParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="ListingsEnvParamInside" attribute="Normal Text" lineEndContext="#stay">
        <RegExpr String="\s*language\s*=\s*(?=[^],])" attribute="Normal Text" context="HighlightingSelector"/>
        <DetectChar char="]" attribute="Normal Text" context="ListingsEnvParamEnd"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="ListingsEnvParamEnd" attribute="Normal Text" lineEndContext="#pop#pop!UnknownHighlighting" fallthroughContext="#pop#pop!UnknownHighlighting">
        <DetectSpaces/>
        <IncludeRules context="FindComments"/>
      </context>

      <!-- environment type 5: minted environment with optional and HL switching -->
      <context name="MintedEnv" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="#pop!MintedEnvParam"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>
      <context name="MintedEnvParam" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="[" attribute="Normal Text" context="#pop!MintedEnvParamInside"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSelector"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="MintedEnvParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="]" attribute="Normal Text" context="#pop!MintedEnvLang"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="MintedEnvLang" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSelector"/>
        <IncludeRules context="FindComments"/>
      </context>

      <!-- environment type 5: minted environment created with newminted -->
      <context name="MintedCodeEnv" attribute="Environment" lineEndContext="#stay" fallthroughContext="#pop#pop#pop#pop">
        <WordDetect String="abapcode*" attribute="Environment" context="HighlightingABAPCodeEnvS"/>
        <WordDetect String="abapcode" attribute="Environment" context="HighlightingABAPCodeEnv"/>
        <WordDetect String="actionscriptcode*" attribute="Environment" context="HighlightingActionScript 2.0CodeEnvS"/>
        <WordDetect String="actionscriptcode" attribute="Environment" context="HighlightingActionScript 2.0CodeEnv"/>
        <WordDetect String="ascode*" attribute="Environment" context="HighlightingActionScript 2.0CodeEnvS"/>
        <WordDetect String="ascode" attribute="Environment" context="HighlightingActionScript 2.0CodeEnv"/>
        <WordDetect String="adacode*" attribute="Environment" context="HighlightingAdaCodeEnvS"/>
        <WordDetect String="adacode" attribute="Environment" context="HighlightingAdaCodeEnv"/>
        <WordDetect String="agdacode*" attribute="Environment" context="HighlightingAgdaCodeEnvS"/>
        <WordDetect String="agdacode" attribute="Environment" context="HighlightingAgdaCodeEnv"/>
        <WordDetect String="apacheconfcode*" attribute="Environment" context="HighlightingApache ConfigurationCodeEnvS"/>
        <WordDetect String="apacheconfcode" attribute="Environment" context="HighlightingApache ConfigurationCodeEnv"/>
        <WordDetect String="aconfcode*" attribute="Environment" context="HighlightingApache ConfigurationCodeEnvS"/>
        <WordDetect String="aconfcode" attribute="Environment" context="HighlightingApache ConfigurationCodeEnv"/>
        <WordDetect String="apachecode*" attribute="Environment" context="HighlightingApache ConfigurationCodeEnvS"/>
        <WordDetect String="apachecode" attribute="Environment" context="HighlightingApache ConfigurationCodeEnv"/>
        <WordDetect String="autohotkeycode*" attribute="Environment" context="HighlightingAutoHotKeyCodeEnvS"/>
        <WordDetect String="autohotkeycode" attribute="Environment" context="HighlightingAutoHotKeyCodeEnv"/>
        <WordDetect String="ahkcode*" attribute="Environment" context="HighlightingAutoHotKeyCodeEnvS"/>
        <WordDetect String="ahkcode" attribute="Environment" context="HighlightingAutoHotKeyCodeEnv"/>
        <WordDetect String="awkcode*" attribute="Environment" context="HighlightingAWKCodeEnvS"/>
        <WordDetect String="awkcode" attribute="Environment" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="gawkcode*" attribute="Environment" context="HighlightingAWKCodeEnvS"/>
        <WordDetect String="gawkcode" attribute="Environment" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="mawkcode*" attribute="Environment" context="HighlightingAWKCodeEnvS"/>
        <WordDetect String="mawkcode" attribute="Environment" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="nawkcode*" attribute="Environment" context="HighlightingAWKCodeEnvS"/>
        <WordDetect String="nawkcode" attribute="Environment" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="bashcode*" attribute="Environment" context="HighlightingBashCodeEnvS"/>
        <WordDetect String="bashcode" attribute="Environment" context="HighlightingBashCodeEnv"/>
        <WordDetect String="shcode*" attribute="Environment" context="HighlightingBashCodeEnvS"/>
        <WordDetect String="shcode" attribute="Environment" context="HighlightingBashCodeEnv"/>
        <WordDetect String="kshcode*" attribute="Environment" context="HighlightingBashCodeEnvS"/>
        <WordDetect String="kshcode" attribute="Environment" context="HighlightingBashCodeEnv"/>
        <WordDetect String="zshcode*" attribute="Environment" context="HighlightingBashCodeEnvS"/>
        <WordDetect String="zshcode" attribute="Environment" context="HighlightingBashCodeEnv"/>
        <WordDetect String="shellcode*" attribute="Environment" context="HighlightingBashCodeEnvS"/>
        <WordDetect String="shellcode" attribute="Environment" context="HighlightingBashCodeEnv"/>
        <WordDetect String="bibtexcode*" attribute="Environment" context="HighlightingBibTeXCodeEnvS"/>
        <WordDetect String="bibtexcode" attribute="Environment" context="HighlightingBibTeXCodeEnv"/>
        <WordDetect String="bibcode*" attribute="Environment" context="HighlightingBibTeXCodeEnvS"/>
        <WordDetect String="bibcode" attribute="Environment" context="HighlightingBibTeXCodeEnv"/>
        <WordDetect String="boocode*" attribute="Environment" context="HighlightingBooCodeEnvS"/>
        <WordDetect String="boocode" attribute="Environment" context="HighlightingBooCodeEnv"/>
        <WordDetect String="ccode*" attribute="Environment" context="HighlightingCCodeEnvS"/>
        <WordDetect String="ccode" attribute="Environment" context="HighlightingCCodeEnv"/>
        <WordDetect String="cmakecode*" attribute="Environment" context="HighlightingCMakeCodeEnvS"/>
        <WordDetect String="cmakecode" attribute="Environment" context="HighlightingCMakeCodeEnv"/>
        <WordDetect String="csharpcode*" attribute="Environment" context="HighlightingC#CodeEnvS"/>
        <WordDetect String="csharpcode" attribute="Environment" context="HighlightingC#CodeEnv"/>
        <WordDetect String="cscode*" attribute="Environment" context="HighlightingC#CodeEnvS"/>
        <WordDetect String="cscode" attribute="Environment" context="HighlightingC#CodeEnv"/>
        <WordDetect String="clojurecode*" attribute="Environment" context="HighlightingClojureCodeEnvS"/>
        <WordDetect String="clojurecode" attribute="Environment" context="HighlightingClojureCodeEnv"/>
        <WordDetect String="cljcode*" attribute="Environment" context="HighlightingClojureCodeEnvS"/>
        <WordDetect String="cljcode" attribute="Environment" context="HighlightingClojureCodeEnv"/>
        <WordDetect String="coffeecode*" attribute="Environment" context="HighlightingCoffeeScriptCodeEnvS"/>
        <WordDetect String="coffeecode" attribute="Environment" context="HighlightingCoffeeScriptCodeEnv"/>
        <WordDetect String="commonlispcode*" attribute="Environment" context="HighlightingCommon LispCodeEnvS"/>
        <WordDetect String="commonlispcode" attribute="Environment" context="HighlightingCommon LispCodeEnv"/>
        <WordDetect String="clcode*" attribute="Environment" context="HighlightingCommon LispCodeEnvS"/>
        <WordDetect String="clcode" attribute="Environment" context="HighlightingCommon LispCodeEnv"/>
        <WordDetect String="lispcode*" attribute="Environment" context="HighlightingCommon LispCodeEnvS"/>
        <WordDetect String="lispcode" attribute="Environment" context="HighlightingCommon LispCodeEnv"/>
        <WordDetect String="cppcode*" attribute="Environment" context="HighlightingC++CodeEnvS"/>
        <WordDetect String="cppcode" attribute="Environment" context="HighlightingC++CodeEnv"/>
        <WordDetect String="csscode*" attribute="Environment" context="HighlightingCSSCodeEnvS"/>
        <WordDetect String="csscode" attribute="Environment" context="HighlightingCSSCodeEnv"/>
        <WordDetect String="dcode*" attribute="Environment" context="HighlightingDCodeEnvS"/>
        <WordDetect String="dcode" attribute="Environment" context="HighlightingDCodeEnv"/>
        <WordDetect String="dartcode*" attribute="Environment" context="HighlightingDartCodeEnvS"/>
        <WordDetect String="dartcode" attribute="Environment" context="HighlightingDartCodeEnv"/>
        <WordDetect String="delphicode*" attribute="Environment" context="HighlightingPascalCodeEnvS"/>
        <WordDetect String="delphicode" attribute="Environment" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="pascode*" attribute="Environment" context="HighlightingPascalCodeEnvS"/>
        <WordDetect String="pascode" attribute="Environment" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="pascalcode*" attribute="Environment" context="HighlightingPascalCodeEnvS"/>
        <WordDetect String="pascalcode" attribute="Environment" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="objectpascalcode*" attribute="Environment" context="HighlightingPascalCodeEnvS"/>
        <WordDetect String="objectpascalcode" attribute="Environment" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="diffcode*" attribute="Environment" context="HighlightingDiffCodeEnvS"/>
        <WordDetect String="diffcode" attribute="Environment" context="HighlightingDiffCodeEnv"/>
        <WordDetect String="udiffcode*" attribute="Environment" context="HighlightingDiffCodeEnvS"/>
        <WordDetect String="udiffcode" attribute="Environment" context="HighlightingDiffCodeEnv"/>
        <WordDetect String="dtdcode*" attribute="Environment" context="HighlightingDTDCodeEnvS"/>
        <WordDetect String="dtdcode" attribute="Environment" context="HighlightingDTDCodeEnv"/>
        <WordDetect String="eiffelcode*" attribute="Environment" context="HighlightingEiffelCodeEnvS"/>
        <WordDetect String="eiffelcode" attribute="Environment" context="HighlightingEiffelCodeEnv"/>
        <WordDetect String="elixircode*" attribute="Environment" context="HighlightingElixirCodeEnvS"/>
        <WordDetect String="elixircode" attribute="Environment" context="HighlightingElixirCodeEnv"/>
        <WordDetect String="excode*" attribute="Environment" context="HighlightingElixirCodeEnvS"/>
        <WordDetect String="excode" attribute="Environment" context="HighlightingElixirCodeEnv"/>
        <WordDetect String="exscode*" attribute="Environment" context="HighlightingElixirCodeEnvS"/>
        <WordDetect String="exscode" attribute="Environment" context="HighlightingElixirCodeEnv"/>
        <WordDetect String="elmcode*" attribute="Environment" context="HighlightingElmCodeEnvS"/>
        <WordDetect String="elmcode" attribute="Environment" context="HighlightingElmCodeEnv"/>
        <WordDetect String="emailcode*" attribute="Environment" context="HighlightingEmailCodeEnvS"/>
        <WordDetect String="emailcode" attribute="Environment" context="HighlightingEmailCodeEnv"/>
        <WordDetect String="emlcode*" attribute="Environment" context="HighlightingEmailCodeEnvS"/>
        <WordDetect String="emlcode" attribute="Environment" context="HighlightingEmailCodeEnv"/>
        <WordDetect String="erlangcode*" attribute="Environment" context="HighlightingErlangCodeEnvS"/>
        <WordDetect String="erlangcode" attribute="Environment" context="HighlightingErlangCodeEnv"/>
        <WordDetect String="fishcode*" attribute="Environment" context="HighlightingFishCodeEnvS"/>
        <WordDetect String="fishcode" attribute="Environment" context="HighlightingFishCodeEnv"/>
        <WordDetect String="fishshellcode*" attribute="Environment" context="HighlightingFishCodeEnvS"/>
        <WordDetect String="fishshellcode" attribute="Environment" context="HighlightingFishCodeEnv"/>
        <WordDetect String="forthcode*" attribute="Environment" context="HighlightingANS-Forth94CodeEnvS"/>
        <WordDetect String="forthcode" attribute="Environment" context="HighlightingANS-Forth94CodeEnv"/>
        <WordDetect String="fortranfixedcode*" attribute="Environment" context="HighlightingFortran (Fixed Format)CodeEnvS"/>
        <WordDetect String="fortranfixedcode" attribute="Environment" context="HighlightingFortran (Fixed Format)CodeEnv"/>
        <WordDetect String="fortrancode*" attribute="Environment" context="HighlightingFortran (Free Format)CodeEnvS"/>
        <WordDetect String="fortrancode" attribute="Environment" context="HighlightingFortran (Free Format)CodeEnv"/>
        <WordDetect String="fcode*" attribute="Environment" context="HighlightingFortran (Free Format)CodeEnvS"/>
        <WordDetect String="fcode" attribute="Environment" context="HighlightingFortran (Free Format)CodeEnv"/>
        <WordDetect String="gapcode*" attribute="Environment" context="HighlightingGAPCodeEnvS"/>
        <WordDetect String="gapcode" attribute="Environment" context="HighlightingGAPCodeEnv"/>
        <WordDetect String="gdscriptcode*" attribute="Environment" context="HighlightingGodotCodeEnvS"/>
        <WordDetect String="gdscriptcode" attribute="Environment" context="HighlightingGodotCodeEnv"/>
        <WordDetect String="gdcode*" attribute="Environment" context="HighlightingGodotCodeEnvS"/>
        <WordDetect String="gdcode" attribute="Environment" context="HighlightingGodotCodeEnv"/>
        <WordDetect String="glslcode*" attribute="Environment" context="HighlightingGLSLCodeEnvS"/>
        <WordDetect String="glslcode" attribute="Environment" context="HighlightingGLSLCodeEnv"/>
        <WordDetect String="gcodecode*" attribute="Environment" context="HighlightingG-CodeCodeEnvS"/>
        <WordDetect String="gcodecode" attribute="Environment" context="HighlightingG-CodeCodeEnv"/>
        <WordDetect String="gnuplotcode*" attribute="Environment" context="HighlightingGnuplotCodeEnvS"/>
        <WordDetect String="gnuplotcode" attribute="Environment" context="HighlightingGnuplotCodeEnv"/>
        <WordDetect String="gocode*" attribute="Environment" context="HighlightingGoCodeEnvS"/>
        <WordDetect String="gocode" attribute="Environment" context="HighlightingGoCodeEnv"/>
        <WordDetect String="golangcode*" attribute="Environment" context="HighlightingGoCodeEnvS"/>
        <WordDetect String="golangcode" attribute="Environment" context="HighlightingGoCodeEnv"/>
        <WordDetect String="groovycode*" attribute="Environment" context="HighlightingGroovyCodeEnvS"/>
        <WordDetect String="groovycode" attribute="Environment" context="HighlightingGroovyCodeEnv"/>
        <WordDetect String="hamlcode*" attribute="Environment" context="HighlightingHamlCodeEnvS"/>
        <WordDetect String="hamlcode" attribute="Environment" context="HighlightingHamlCodeEnv"/>
        <WordDetect String="haskellcode*" attribute="Environment" context="HighlightingHaskellCodeEnvS"/>
        <WordDetect String="haskellcode" attribute="Environment" context="HighlightingHaskellCodeEnv"/>
        <WordDetect String="hscode*" attribute="Environment" context="HighlightingHaskellCodeEnvS"/>
        <WordDetect String="hscode" attribute="Environment" context="HighlightingHaskellCodeEnv"/>
        <WordDetect String="haxecode*" attribute="Environment" context="HighlightingHaxeCodeEnvS"/>
        <WordDetect String="haxecode" attribute="Environment" context="HighlightingHaxeCodeEnv"/>
        <WordDetect String="hxslcode*" attribute="Environment" context="HighlightingHaxeCodeEnvS"/>
        <WordDetect String="hxslcode" attribute="Environment" context="HighlightingHaxeCodeEnv"/>
        <WordDetect String="hxcode*" attribute="Environment" context="HighlightingHaxeCodeEnvS"/>
        <WordDetect String="hxcode" attribute="Environment" context="HighlightingHaxeCodeEnv"/>
        <WordDetect String="htmlcode*" attribute="Environment" context="HighlightingHTMLCodeEnvS"/>
        <WordDetect String="htmlcode" attribute="Environment" context="HighlightingHTMLCodeEnv"/>
        <WordDetect String="idlcode*" attribute="Environment" context="HighlightingIDLCodeEnvS"/>
        <WordDetect String="idlcode" attribute="Environment" context="HighlightingIDLCodeEnv"/>
        <WordDetect String="idriscode*" attribute="Environment" context="HighlightingIdrisCodeEnvS"/>
        <WordDetect String="idriscode" attribute="Environment" context="HighlightingIdrisCodeEnv"/>
        <WordDetect String="idrcode*" attribute="Environment" context="HighlightingIdrisCodeEnvS"/>
        <WordDetect String="idrcode" attribute="Environment" context="HighlightingIdrisCodeEnv"/>
        <WordDetect String="informcode*" attribute="Environment" context="HighlightingInformCodeEnvS"/>
        <WordDetect String="informcode" attribute="Environment" context="HighlightingInformCodeEnv"/>
        <WordDetect String="icode*" attribute="Environment" context="HighlightingInformCodeEnvS"/>
        <WordDetect String="icode" attribute="Environment" context="HighlightingInformCodeEnv"/>
        <WordDetect String="inicode*" attribute="Environment" context="HighlightingINI FilesCodeEnvS"/>
        <WordDetect String="inicode" attribute="Environment" context="HighlightingINI FilesCodeEnv"/>
        <WordDetect String="cfgcode*" attribute="Environment" context="HighlightingINI FilesCodeEnvS"/>
        <WordDetect String="cfgcode" attribute="Environment" context="HighlightingINI FilesCodeEnv"/>
        <WordDetect String="dosinicode*" attribute="Environment" context="HighlightingINI FilesCodeEnvS"/>
        <WordDetect String="dosinicode" attribute="Environment" context="HighlightingINI FilesCodeEnv"/>
        <WordDetect String="jcode*" attribute="Environment" context="HighlightingJCodeEnvS"/>
        <WordDetect String="jcode" attribute="Environment" context="HighlightingJCodeEnv"/>
        <WordDetect String="javacode*" attribute="Environment" context="HighlightingJavaCodeEnvS"/>
        <WordDetect String="javacode" attribute="Environment" context="HighlightingJavaCodeEnv"/>
        <WordDetect String="javascriptcode*" attribute="Environment" context="HighlightingJavaScriptCodeEnvS"/>
        <WordDetect String="javascriptcode" attribute="Environment" context="HighlightingJavaScriptCodeEnv"/>
        <WordDetect String="jscode*" attribute="Environment" context="HighlightingJavaScriptCodeEnvS"/>
        <WordDetect String="jscode" attribute="Environment" context="HighlightingJavaScriptCodeEnv"/>
        <WordDetect String="jclcode*" attribute="Environment" context="HighlightingJCLCodeEnvS"/>
        <WordDetect String="jclcode" attribute="Environment" context="HighlightingJCLCodeEnv"/>
        <WordDetect String="jsoncode*" attribute="Environment" context="HighlightingJSONCodeEnvS"/>
        <WordDetect String="jsoncode" attribute="Environment" context="HighlightingJSONCodeEnv"/>
        <WordDetect String="jsonobjectcode*" attribute="Environment" context="HighlightingJSONCodeEnvS"/>
        <WordDetect String="jsonobjectcode" attribute="Environment" context="HighlightingJSONCodeEnv"/>
        <WordDetect String="juliacode*" attribute="Environment" context="HighlightingJuliaCodeEnvS"/>
        <WordDetect String="juliacode" attribute="Environment" context="HighlightingJuliaCodeEnv"/>
        <WordDetect String="jlcode*" attribute="Environment" context="HighlightingJuliaCodeEnvS"/>
        <WordDetect String="jlcode" attribute="Environment" context="HighlightingJuliaCodeEnv"/>
        <WordDetect String="kconfigcode*" attribute="Environment" context="HighlightingKconfigCodeEnvS"/>
        <WordDetect String="kconfigcode" attribute="Environment" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="menuconfigcode*" attribute="Environment" context="HighlightingKconfigCodeEnvS"/>
        <WordDetect String="menuconfigcode" attribute="Environment" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="linuxconfigcode*" attribute="Environment" context="HighlightingKconfigCodeEnvS"/>
        <WordDetect String="linuxconfigcode" attribute="Environment" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="kernelconfigcode*" attribute="Environment" context="HighlightingKconfigCodeEnvS"/>
        <WordDetect String="kernelconfigcode" attribute="Environment" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="kotlincode*" attribute="Environment" context="HighlightingKotlinCodeEnvS"/>
        <WordDetect String="kotlincode" attribute="Environment" context="HighlightingKotlinCodeEnv"/>
        <WordDetect String="lslcode*" attribute="Environment" context="HighlightingLSLCodeEnvS"/>
        <WordDetect String="lslcode" attribute="Environment" context="HighlightingLSLCodeEnv"/>
        <WordDetect String="lesscode*" attribute="Environment" context="HighlightingLESSCSSCodeEnvS"/>
        <WordDetect String="lesscode" attribute="Environment" context="HighlightingLESSCSSCodeEnv"/>
        <WordDetect String="lilypondcode*" attribute="Environment" context="HighlightingLilyPondCodeEnvS"/>
        <WordDetect String="lilypondcode" attribute="Environment" context="HighlightingLilyPondCodeEnv"/>
        <WordDetect String="literatehaskellcode*" attribute="Environment" context="HighlightingLiterate HaskellCodeEnvS"/>
        <WordDetect String="literatehaskellcode" attribute="Environment" context="HighlightingLiterate HaskellCodeEnv"/>
        <WordDetect String="lhaskellcode*" attribute="Environment" context="HighlightingLiterate HaskellCodeEnvS"/>
        <WordDetect String="lhaskellcode" attribute="Environment" context="HighlightingLiterate HaskellCodeEnv"/>
        <WordDetect String="lhscode*" attribute="Environment" context="HighlightingLiterate HaskellCodeEnvS"/>
        <WordDetect String="lhscode" attribute="Environment" context="HighlightingLiterate HaskellCodeEnv"/>
        <WordDetect String="llvmcode*" attribute="Environment" context="HighlightingLLVMCodeEnvS"/>
        <WordDetect String="llvmcode" attribute="Environment" context="HighlightingLLVMCodeEnv"/>
        <WordDetect String="logtalkcode*" attribute="Environment" context="HighlightingLogtalkCodeEnvS"/>
        <WordDetect String="logtalkcode" attribute="Environment" context="HighlightingLogtalkCodeEnv"/>
        <WordDetect String="luacode*" attribute="Environment" context="HighlightingLuaCodeEnvS"/>
        <WordDetect String="luacode" attribute="Environment" context="HighlightingLuaCodeEnv"/>
        <WordDetect String="makecode*" attribute="Environment" context="HighlightingMakefileCodeEnvS"/>
        <WordDetect String="makecode" attribute="Environment" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="makefilecode*" attribute="Environment" context="HighlightingMakefileCodeEnvS"/>
        <WordDetect String="makefilecode" attribute="Environment" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="mfcode*" attribute="Environment" context="HighlightingMakefileCodeEnvS"/>
        <WordDetect String="mfcode" attribute="Environment" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="bsdmakecode*" attribute="Environment" context="HighlightingMakefileCodeEnvS"/>
        <WordDetect String="bsdmakecode" attribute="Environment" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="makocode*" attribute="Environment" context="HighlightingMakoCodeEnvS"/>
        <WordDetect String="makocode" attribute="Environment" context="HighlightingMakoCodeEnv"/>
        <WordDetect String="markdowncode*" attribute="Environment" context="HighlightingMarkdownCodeEnvS"/>
        <WordDetect String="markdowncode" attribute="Environment" context="HighlightingMarkdownCodeEnv"/>
        <WordDetect String="mdcode*" attribute="Environment" context="HighlightingMarkdownCodeEnvS"/>
        <WordDetect String="mdcode" attribute="Environment" context="HighlightingMarkdownCodeEnv"/>
        <WordDetect String="masoncode*" attribute="Environment" context="HighlightingMasonCodeEnvS"/>
        <WordDetect String="masoncode" attribute="Environment" context="HighlightingMasonCodeEnv"/>
        <WordDetect String="mathematicacode*" attribute="Environment" context="HighlightingMathematicaCodeEnvS"/>
        <WordDetect String="mathematicacode" attribute="Environment" context="HighlightingMathematicaCodeEnv"/>
        <WordDetect String="mmacode*" attribute="Environment" context="HighlightingMathematicaCodeEnvS"/>
        <WordDetect String="mmacode" attribute="Environment" context="HighlightingMathematicaCodeEnv"/>
        <WordDetect String="nbcode*" attribute="Environment" context="HighlightingMathematicaCodeEnvS"/>
        <WordDetect String="nbcode" attribute="Environment" context="HighlightingMathematicaCodeEnv"/>
        <WordDetect String="matlabcode*" attribute="Environment" context="HighlightingMatlabCodeEnvS"/>
        <WordDetect String="matlabcode" attribute="Environment" context="HighlightingMatlabCodeEnv"/>
        <WordDetect String="maximacode*" attribute="Environment" context="HighlightingMaximaCodeEnvS"/>
        <WordDetect String="maximacode" attribute="Environment" context="HighlightingMaximaCodeEnv"/>
        <WordDetect String="macsymacode*" attribute="Environment" context="HighlightingMaximaCodeEnvS"/>
        <WordDetect String="macsymacode" attribute="Environment" context="HighlightingMaximaCodeEnv"/>
        <WordDetect String="mesoncode*" attribute="Environment" context="HighlightingMesonCodeEnvS"/>
        <WordDetect String="mesoncode" attribute="Environment" context="HighlightingMesonCodeEnv"/>
        <WordDetect String="mesonbuildcode*" attribute="Environment" context="HighlightingMesonCodeEnvS"/>
        <WordDetect String="mesonbuildcode" attribute="Environment" context="HighlightingMesonCodeEnv"/>
        <WordDetect String="modelicacode*" attribute="Environment" context="HighlightingModelicaCodeEnvS"/>
        <WordDetect String="modelicacode" attribute="Environment" context="HighlightingModelicaCodeEnv"/>
        <WordDetect String="modulacode*" attribute="Environment" context="HighlightingModula-2CodeEnvS"/>
        <WordDetect String="modulacode" attribute="Environment" context="HighlightingModula-2CodeEnv"/>
        <WordDetect String="mcode*" attribute="Environment" context="HighlightingModula-2CodeEnvS"/>
        <WordDetect String="mcode" attribute="Environment" context="HighlightingModula-2CodeEnv"/>
        <WordDetect String="mysqlcode*" attribute="Environment" context="HighlightingSQL (MySQL)CodeEnvS"/>
        <WordDetect String="mysqlcode" attribute="Environment" context="HighlightingSQL (MySQL)CodeEnv"/>
        <WordDetect String="nsiscode*" attribute="Environment" context="HighlightingNSISCodeEnvS"/>
        <WordDetect String="nsiscode" attribute="Environment" context="HighlightingNSISCodeEnv"/>
        <WordDetect String="nsicode*" attribute="Environment" context="HighlightingNSISCodeEnvS"/>
        <WordDetect String="nsicode" attribute="Environment" context="HighlightingNSISCodeEnv"/>
        <WordDetect String="nshcode*" attribute="Environment" context="HighlightingNSISCodeEnvS"/>
        <WordDetect String="nshcode" attribute="Environment" context="HighlightingNSISCodeEnv"/>
        <WordDetect String="nasmcode*" attribute="Environment" context="HighlightingIntel x86 (NASM)CodeEnvS"/>
        <WordDetect String="nasmcode" attribute="Environment" context="HighlightingIntel x86 (NASM)CodeEnv"/>
        <WordDetect String="nemerlecode*" attribute="Environment" context="HighlightingNemerleCodeEnvS"/>
        <WordDetect String="nemerlecode" attribute="Environment" context="HighlightingNemerleCodeEnv"/>
        <WordDetect String="nesccode*" attribute="Environment" context="HighlightingnesCCodeEnvS"/>
        <WordDetect String="nesccode" attribute="Environment" context="HighlightingnesCCodeEnv"/>
        <WordDetect String="nimrodcode*" attribute="Environment" context="HighlightingNimCodeEnvS"/>
        <WordDetect String="nimrodcode" attribute="Environment" context="HighlightingNimCodeEnv"/>
        <WordDetect String="nimcode*" attribute="Environment" context="HighlightingNimCodeEnvS"/>
        <WordDetect String="nimcode" attribute="Environment" context="HighlightingNimCodeEnv"/>
        <WordDetect String="nixoscode*" attribute="Environment" context="HighlightingNixCodeEnvS"/>
        <WordDetect String="nixoscode" attribute="Environment" context="HighlightingNixCodeEnv"/>
        <WordDetect String="nixcode*" attribute="Environment" context="HighlightingNixCodeEnvS"/>
        <WordDetect String="nixcode" attribute="Environment" context="HighlightingNixCodeEnv"/>
        <WordDetect String="objectiveccode*" attribute="Environment" context="HighlightingObjective-CCodeEnvS"/>
        <WordDetect String="objectiveccode" attribute="Environment" context="HighlightingObjective-CCodeEnv"/>
        <WordDetect String="objccode*" attribute="Environment" context="HighlightingObjective-CCodeEnvS"/>
        <WordDetect String="objccode" attribute="Environment" context="HighlightingObjective-CCodeEnv"/>
        <WordDetect String="objectivecppcode*" attribute="Environment" context="HighlightingObjective-C++CodeEnvS"/>
        <WordDetect String="objectivecppcode" attribute="Environment" context="HighlightingObjective-C++CodeEnv"/>
        <WordDetect String="objcppcode*" attribute="Environment" context="HighlightingObjective-C++CodeEnvS"/>
        <WordDetect String="objcppcode" attribute="Environment" context="HighlightingObjective-C++CodeEnv"/>
        <WordDetect String="ocamlcode*" attribute="Environment" context="HighlightingObjective CamlCodeEnvS"/>
        <WordDetect String="ocamlcode" attribute="Environment" context="HighlightingObjective CamlCodeEnv"/>
        <WordDetect String="octavecode*" attribute="Environment" context="HighlightingOctaveCodeEnvS"/>
        <WordDetect String="octavecode" attribute="Environment" context="HighlightingOctaveCodeEnv"/>
        <WordDetect String="perlcode*" attribute="Environment" context="HighlightingPerlCodeEnvS"/>
        <WordDetect String="perlcode" attribute="Environment" context="HighlightingPerlCodeEnv"/>
        <WordDetect String="plcode*" attribute="Environment" context="HighlightingPerlCodeEnvS"/>
        <WordDetect String="plcode" attribute="Environment" context="HighlightingPerlCodeEnv"/>
        <WordDetect String="phpcode*" attribute="Environment" context="HighlightingPHP/PHPCodeEnvS"/>
        <WordDetect String="phpcode" attribute="Environment" context="HighlightingPHP/PHPCodeEnv"/>
        <WordDetect String="pigcode*" attribute="Environment" context="HighlightingPigCodeEnvS"/>
        <WordDetect String="pigcode" attribute="Environment" context="HighlightingPigCodeEnv"/>
        <WordDetect String="pikecode*" attribute="Environment" context="HighlightingPikeCodeEnvS"/>
        <WordDetect String="pikecode" attribute="Environment" context="HighlightingPikeCodeEnv"/>
        <WordDetect String="ponycode*" attribute="Environment" context="HighlightingPonyCodeEnvS"/>
        <WordDetect String="ponycode" attribute="Environment" context="HighlightingPonyCodeEnv"/>
        <WordDetect String="postscriptcode*" attribute="Environment" context="HighlightingPostScriptCodeEnvS"/>
        <WordDetect String="postscriptcode" attribute="Environment" context="HighlightingPostScriptCodeEnv"/>
        <WordDetect String="postscrcode*" attribute="Environment" context="HighlightingPostScriptCodeEnvS"/>
        <WordDetect String="postscrcode" attribute="Environment" context="HighlightingPostScriptCodeEnv"/>
        <WordDetect String="povcode*" attribute="Environment" context="HighlightingPOV-RayCodeEnvS"/>
        <WordDetect String="povcode" attribute="Environment" context="HighlightingPOV-RayCodeEnv"/>
        <WordDetect String="powershellcode*" attribute="Environment" context="HighlightingPowerShellCodeEnvS"/>
        <WordDetect String="powershellcode" attribute="Environment" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="pwshcode*" attribute="Environment" context="HighlightingPowerShellCodeEnvS"/>
        <WordDetect String="pwshcode" attribute="Environment" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="poshcode*" attribute="Environment" context="HighlightingPowerShellCodeEnvS"/>
        <WordDetect String="poshcode" attribute="Environment" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="pscode*" attribute="Environment" context="HighlightingPowerShellCodeEnvS"/>
        <WordDetect String="pscode" attribute="Environment" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="psmcode*" attribute="Environment" context="HighlightingPowerShellCodeEnvS"/>
        <WordDetect String="psmcode" attribute="Environment" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="praatcode*" attribute="Environment" context="HighlightingPraatCodeEnvS"/>
        <WordDetect String="praatcode" attribute="Environment" context="HighlightingPraatCodeEnv"/>
        <WordDetect String="prologcode*" attribute="Environment" context="HighlightingPrologCodeEnvS"/>
        <WordDetect String="prologcode" attribute="Environment" context="HighlightingPrologCodeEnv"/>
        <WordDetect String="protobufcode*" attribute="Environment" context="HighlightingProtobufCodeEnvS"/>
        <WordDetect String="protobufcode" attribute="Environment" context="HighlightingProtobufCodeEnv"/>
        <WordDetect String="protocode*" attribute="Environment" context="HighlightingProtobufCodeEnvS"/>
        <WordDetect String="protocode" attribute="Environment" context="HighlightingProtobufCodeEnv"/>
        <WordDetect String="pugcode*" attribute="Environment" context="HighlightingPugCodeEnvS"/>
        <WordDetect String="pugcode" attribute="Environment" context="HighlightingPugCodeEnv"/>
        <WordDetect String="jadecode*" attribute="Environment" context="HighlightingPugCodeEnvS"/>
        <WordDetect String="jadecode" attribute="Environment" context="HighlightingPugCodeEnv"/>
        <WordDetect String="puppetcode*" attribute="Environment" context="HighlightingPuppetCodeEnvS"/>
        <WordDetect String="puppetcode" attribute="Environment" context="HighlightingPuppetCodeEnv"/>
        <WordDetect String="pythoncode*" attribute="Environment" context="HighlightingPythonCodeEnvS"/>
        <WordDetect String="pythoncode" attribute="Environment" context="HighlightingPythonCodeEnv"/>
        <WordDetect String="pycode*" attribute="Environment" context="HighlightingPythonCodeEnvS"/>
        <WordDetect String="pycode" attribute="Environment" context="HighlightingPythonCodeEnv"/>
        <WordDetect String="sagecode*" attribute="Environment" context="HighlightingPythonCodeEnvS"/>
        <WordDetect String="sagecode" attribute="Environment" context="HighlightingPythonCodeEnv"/>
        <WordDetect String="qmlcode*" attribute="Environment" context="HighlightingQMLCodeEnvS"/>
        <WordDetect String="qmlcode" attribute="Environment" context="HighlightingQMLCodeEnv"/>
        <WordDetect String="qbscode*" attribute="Environment" context="HighlightingQMLCodeEnvS"/>
        <WordDetect String="qbscode" attribute="Environment" context="HighlightingQMLCodeEnv"/>
        <WordDetect String="rngcompactcode*" attribute="Environment" context="HighlightingRelaxNG-CompactCodeEnvS"/>
        <WordDetect String="rngcompactcode" attribute="Environment" context="HighlightingRelaxNG-CompactCodeEnv"/>
        <WordDetect String="rnccode*" attribute="Environment" context="HighlightingRelaxNG-CompactCodeEnvS"/>
        <WordDetect String="rnccode" attribute="Environment" context="HighlightingRelaxNG-CompactCodeEnv"/>
        <WordDetect String="speccode*" attribute="Environment" context="HighlightingRPM SpecCodeEnvS"/>
        <WordDetect String="speccode" attribute="Environment" context="HighlightingRPM SpecCodeEnv"/>
        <WordDetect String="racketcode*" attribute="Environment" context="HighlightingRacketCodeEnvS"/>
        <WordDetect String="racketcode" attribute="Environment" context="HighlightingRacketCodeEnv"/>
        <WordDetect String="rktcode*" attribute="Environment" context="HighlightingRacketCodeEnvS"/>
        <WordDetect String="rktcode" attribute="Environment" context="HighlightingRacketCodeEnv"/>
        <WordDetect String="rexxcode*" attribute="Environment" context="HighlightingREXXCodeEnvS"/>
        <WordDetect String="rexxcode" attribute="Environment" context="HighlightingREXXCodeEnv"/>
        <WordDetect String="arexxcode*" attribute="Environment" context="HighlightingREXXCodeEnvS"/>
        <WordDetect String="arexxcode" attribute="Environment" context="HighlightingREXXCodeEnv"/>
        <WordDetect String="rhtmlcode*" attribute="Environment" context="HighlightingRuby/Rails/RHTMLCodeEnvS"/>
        <WordDetect String="rhtmlcode" attribute="Environment" context="HighlightingRuby/Rails/RHTMLCodeEnv"/>
        <WordDetect String="htmlerbcode*" attribute="Environment" context="HighlightingRuby/Rails/RHTMLCodeEnvS"/>
        <WordDetect String="htmlerbcode" attribute="Environment" context="HighlightingRuby/Rails/RHTMLCodeEnv"/>
        <WordDetect String="htmlrubycode*" attribute="Environment" context="HighlightingRuby/Rails/RHTMLCodeEnvS"/>
        <WordDetect String="htmlrubycode" attribute="Environment" context="HighlightingRuby/Rails/RHTMLCodeEnv"/>
        <WordDetect String="rstcode*" attribute="Environment" context="HighlightingreStructuredTextCodeEnvS"/>
        <WordDetect String="rstcode" attribute="Environment" context="HighlightingreStructuredTextCodeEnv"/>
        <WordDetect String="restcode*" attribute="Environment" context="HighlightingreStructuredTextCodeEnvS"/>
        <WordDetect String="restcode" attribute="Environment" context="HighlightingreStructuredTextCodeEnv"/>
        <WordDetect String="rubycode*" attribute="Environment" context="HighlightingRubyCodeEnvS"/>
        <WordDetect String="rubycode" attribute="Environment" context="HighlightingRubyCodeEnv"/>
        <WordDetect String="rbcode*" attribute="Environment" context="HighlightingRubyCodeEnvS"/>
        <WordDetect String="rbcode" attribute="Environment" context="HighlightingRubyCodeEnv"/>
        <WordDetect String="dubycode*" attribute="Environment" context="HighlightingRubyCodeEnvS"/>
        <WordDetect String="dubycode" attribute="Environment" context="HighlightingRubyCodeEnv"/>
        <WordDetect String="rustcode*" attribute="Environment" context="HighlightingRustCodeEnvS"/>
        <WordDetect String="rustcode" attribute="Environment" context="HighlightingRustCodeEnv"/>
        <WordDetect String="rscode*" attribute="Environment" context="HighlightingRustCodeEnvS"/>
        <WordDetect String="rscode" attribute="Environment" context="HighlightingRustCodeEnv"/>
        <WordDetect String="smlcode*" attribute="Environment" context="HighlightingSMLCodeEnvS"/>
        <WordDetect String="smlcode" attribute="Environment" context="HighlightingSMLCodeEnv"/>
        <WordDetect String="sasscode*" attribute="Environment" context="HighlightingSASSCodeEnvS"/>
        <WordDetect String="sasscode" attribute="Environment" context="HighlightingSASSCodeEnv"/>
        <WordDetect String="scalacode*" attribute="Environment" context="HighlightingScalaCodeEnvS"/>
        <WordDetect String="scalacode" attribute="Environment" context="HighlightingScalaCodeEnv"/>
        <WordDetect String="schemecode*" attribute="Environment" context="HighlightingSchemeCodeEnvS"/>
        <WordDetect String="schemecode" attribute="Environment" context="HighlightingSchemeCodeEnv"/>
        <WordDetect String="scmcode*" attribute="Environment" context="HighlightingSchemeCodeEnvS"/>
        <WordDetect String="scmcode" attribute="Environment" context="HighlightingSchemeCodeEnv"/>
        <WordDetect String="scilabcode*" attribute="Environment" context="HighlightingscilabCodeEnvS"/>
        <WordDetect String="scilabcode" attribute="Environment" context="HighlightingscilabCodeEnv"/>
        <WordDetect String="scsscode*" attribute="Environment" context="HighlightingSCSSCodeEnvS"/>
        <WordDetect String="scsscode" attribute="Environment" context="HighlightingSCSSCodeEnv"/>
        <WordDetect String="sedcode*" attribute="Environment" context="HighlightingsedCodeEnvS"/>
        <WordDetect String="sedcode" attribute="Environment" context="HighlightingsedCodeEnv"/>
        <WordDetect String="gsedcode*" attribute="Environment" context="HighlightingsedCodeEnvS"/>
        <WordDetect String="gsedcode" attribute="Environment" context="HighlightingsedCodeEnv"/>
        <WordDetect String="ssedcode*" attribute="Environment" context="HighlightingsedCodeEnvS"/>
        <WordDetect String="ssedcode" attribute="Environment" context="HighlightingsedCodeEnv"/>
        <WordDetect String="sievecode*" attribute="Environment" context="HighlightingSieveCodeEnvS"/>
        <WordDetect String="sievecode" attribute="Environment" context="HighlightingSieveCodeEnv"/>
        <WordDetect String="smalicode*" attribute="Environment" context="HighlightingSmaliCodeEnvS"/>
        <WordDetect String="smalicode" attribute="Environment" context="HighlightingSmaliCodeEnv"/>
        <WordDetect String="soliditycode*" attribute="Environment" context="HighlightingSolidityCodeEnvS"/>
        <WordDetect String="soliditycode" attribute="Environment" context="HighlightingSolidityCodeEnv"/>
        <WordDetect String="spicecode*" attribute="Environment" context="HighlightingSpiceCodeEnvS"/>
        <WordDetect String="spicecode" attribute="Environment" context="HighlightingSpiceCodeEnv"/>
        <WordDetect String="spicelangcode*" attribute="Environment" context="HighlightingSpiceCodeEnvS"/>
        <WordDetect String="spicelangcode" attribute="Environment" context="HighlightingSpiceCodeEnv"/>
        <WordDetect String="sqlcode*" attribute="Environment" context="HighlightingSQLCodeEnvS"/>
        <WordDetect String="sqlcode" attribute="Environment" context="HighlightingSQLCodeEnv"/>
        <WordDetect String="stancode*" attribute="Environment" context="HighlightingStanCodeEnvS"/>
        <WordDetect String="stancode" attribute="Environment" context="HighlightingStanCodeEnv"/>
        <WordDetect String="statacode*" attribute="Environment" context="HighlightingStataCodeEnvS"/>
        <WordDetect String="statacode" attribute="Environment" context="HighlightingStataCodeEnv"/>
        <WordDetect String="docode*" attribute="Environment" context="HighlightingStataCodeEnvS"/>
        <WordDetect String="docode" attribute="Environment" context="HighlightingStataCodeEnv"/>
        <WordDetect String="swiftcode*" attribute="Environment" context="HighlightingSwiftCodeEnvS"/>
        <WordDetect String="swiftcode" attribute="Environment" context="HighlightingSwiftCodeEnv"/>
        <WordDetect String="systemverilogcode*" attribute="Environment" context="HighlightingSystemVerilogCodeEnvS"/>
        <WordDetect String="systemverilogcode" attribute="Environment" context="HighlightingSystemVerilogCodeEnv"/>
        <WordDetect String="svcode*" attribute="Environment" context="HighlightingSystemVerilogCodeEnvS"/>
        <WordDetect String="svcode" attribute="Environment" context="HighlightingSystemVerilogCodeEnv"/>
        <WordDetect String="tomlcode*" attribute="Environment" context="HighlightingTOMLCodeEnvS"/>
        <WordDetect String="tomlcode" attribute="Environment" context="HighlightingTOMLCodeEnv"/>
        <WordDetect String="tadscode*" attribute="Environment" context="HighlightingTADS 3CodeEnvS"/>
        <WordDetect String="tadscode" attribute="Environment" context="HighlightingTADS 3CodeEnv"/>
        <WordDetect String="tclcode*" attribute="Environment" context="HighlightingTcl/TkCodeEnvS"/>
        <WordDetect String="tclcode" attribute="Environment" context="HighlightingTcl/TkCodeEnv"/>
        <WordDetect String="tcshcode*" attribute="Environment" context="HighlightingTcshCodeEnvS"/>
        <WordDetect String="tcshcode" attribute="Environment" context="HighlightingTcshCodeEnv"/>
        <WordDetect String="cshcode*" attribute="Environment" context="HighlightingTcshCodeEnvS"/>
        <WordDetect String="cshcode" attribute="Environment" context="HighlightingTcshCodeEnv"/>
        <WordDetect String="terraformcode*" attribute="Environment" context="HighlightingTerraformCodeEnvS"/>
        <WordDetect String="terraformcode" attribute="Environment" context="HighlightingTerraformCodeEnv"/>
        <WordDetect String="tfcode*" attribute="Environment" context="HighlightingTerraformCodeEnvS"/>
        <WordDetect String="tfcode" attribute="Environment" context="HighlightingTerraformCodeEnv"/>
        <WordDetect String="texcode*" attribute="Environment" context="HighlightingLaTeXCodeEnvS"/>
        <WordDetect String="texcode" attribute="Environment" context="HighlightingLaTeXCodeEnv"/>
        <WordDetect String="latexcode*" attribute="Environment" context="HighlightingLaTeXCodeEnvS"/>
        <WordDetect String="latexcode" attribute="Environment" context="HighlightingLaTeXCodeEnv"/>
        <WordDetect String="todotxtcode*" attribute="Environment" context="HighlightingTodo.txtCodeEnvS"/>
        <WordDetect String="todotxtcode" attribute="Environment" context="HighlightingTodo.txtCodeEnv"/>
        <WordDetect String="typescriptcode*" attribute="Environment" context="HighlightingTypeScriptCodeEnvS"/>
        <WordDetect String="typescriptcode" attribute="Environment" context="HighlightingTypeScriptCodeEnv"/>
        <WordDetect String="tscode*" attribute="Environment" context="HighlightingTypeScriptCodeEnvS"/>
        <WordDetect String="tscode" attribute="Environment" context="HighlightingTypeScriptCodeEnv"/>
        <WordDetect String="valacode*" attribute="Environment" context="HighlightingValaCodeEnvS"/>
        <WordDetect String="valacode" attribute="Environment" context="HighlightingValaCodeEnv"/>
        <WordDetect String="vapicode*" attribute="Environment" context="HighlightingValaCodeEnvS"/>
        <WordDetect String="vapicode" attribute="Environment" context="HighlightingValaCodeEnv"/>
        <WordDetect String="velocitycode*" attribute="Environment" context="HighlightingVelocityCodeEnvS"/>
        <WordDetect String="velocitycode" attribute="Environment" context="HighlightingVelocityCodeEnv"/>
        <WordDetect String="verilogcode*" attribute="Environment" context="HighlightingVerilogCodeEnvS"/>
        <WordDetect String="verilogcode" attribute="Environment" context="HighlightingVerilogCodeEnv"/>
        <WordDetect String="vcode*" attribute="Environment" context="HighlightingVerilogCodeEnvS"/>
        <WordDetect String="vcode" attribute="Environment" context="HighlightingVerilogCodeEnv"/>
        <WordDetect String="vhdlcode*" attribute="Environment" context="HighlightingVHDLCodeEnvS"/>
        <WordDetect String="vhdlcode" attribute="Environment" context="HighlightingVHDLCodeEnv"/>
        <WordDetect String="xmlcode*" attribute="Environment" context="HighlightingXMLCodeEnvS"/>
        <WordDetect String="xmlcode" attribute="Environment" context="HighlightingXMLCodeEnv"/>
        <WordDetect String="xorgconfcode*" attribute="Environment" context="Highlightingx.org ConfigurationCodeEnvS"/>
        <WordDetect String="xorgconfcode" attribute="Environment" context="Highlightingx.org ConfigurationCodeEnv"/>
        <WordDetect String="xsltcode*" attribute="Environment" context="HighlightingxsltCodeEnvS"/>
        <WordDetect String="xsltcode" attribute="Environment" context="HighlightingxsltCodeEnv"/>
        <WordDetect String="yamlcode*" attribute="Environment" context="HighlightingYAMLCodeEnvS"/>
        <WordDetect String="yamlcode" attribute="Environment" context="HighlightingYAMLCodeEnv"/>
        <WordDetect String="yangcode*" attribute="Environment" context="HighlightingYANGCodeEnvS"/>
        <WordDetect String="yangcode" attribute="Environment" context="HighlightingYANGCodeEnv"/>
        <RegExpr String=".+code\*" attribute="Environment" context="UnknownHighlightingCodeEnvS"/>
        <RegExpr String=".+code" attribute="Environment" context="UnknownHighlightingCodeEnv"/>
      </context>

      <!-- parse verbatim text for lstinline and minted -->
      <context name="UnknownHighlightingCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!UnknownHighlightingCodeEnvSParam"/>
      </context>
      <context name="UnknownHighlightingCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="UnknownHighlightingCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="UnknownHighlightingCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!UnknownHighlightingBegin"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="UnknownHighlightingCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="UnknownHighlightingBegin"/>
        <!-- Eat the trailing characters including } or ] after the language specification -->
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="UnknownHighlightingBegin" attribute="Normal Text" lineEndContext="UnknownHighlighting">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="UnknownHighlighting" attribute="Verbatim Code" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="\\end(?=\s*\{(?:lstlisting|minted|[a-zA-Z]+code)\*?\})" attribute="Structure" context="UnknownHighlightingEnd"/>
      </context>
      <context name="UnknownHighlightingEnd" attribute="Environment" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="#stay"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop#pop#pop#pop#pop" endRegion="block"/>
        <DetectIdentifier/>
      </context>


      <!-- Selector for different highlightning schemes, in case the language is not implemented we pop and thus fallback to verbatim -->
      <context name="HighlightingSelector" attribute="Normal Text" lineEndContext="#stay">
        <WordDetect String="abap" insensitive="true" context="HighlightingABAPCodeEnv"/>
        <WordDetect String="actionscript" insensitive="true" context="HighlightingActionScript 2.0CodeEnv"/>
        <WordDetect String="as" insensitive="true" context="HighlightingActionScript 2.0CodeEnv"/>
        <WordDetect String="ada" insensitive="true" context="HighlightingAdaCodeEnv"/>
        <WordDetect String="agda" insensitive="true" context="HighlightingAgdaCodeEnv"/>
        <WordDetect String="apacheconf" insensitive="true" context="HighlightingApache ConfigurationCodeEnv"/>
        <WordDetect String="aconf" insensitive="true" context="HighlightingApache ConfigurationCodeEnv"/>
        <WordDetect String="apache" insensitive="true" context="HighlightingApache ConfigurationCodeEnv"/>
        <WordDetect String="autohotkey" insensitive="true" context="HighlightingAutoHotKeyCodeEnv"/>
        <WordDetect String="ahk" insensitive="true" context="HighlightingAutoHotKeyCodeEnv"/>
        <WordDetect String="awk" insensitive="true" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="gawk" insensitive="true" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="mawk" insensitive="true" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="nawk" insensitive="true" context="HighlightingAWKCodeEnv"/>
        <WordDetect String="bash" insensitive="true" context="HighlightingBashCodeEnv"/>
        <WordDetect String="sh" insensitive="true" context="HighlightingBashCodeEnv"/>
        <WordDetect String="ksh" insensitive="true" context="HighlightingBashCodeEnv"/>
        <WordDetect String="zsh" insensitive="true" context="HighlightingBashCodeEnv"/>
        <WordDetect String="shell" insensitive="true" context="HighlightingBashCodeEnv"/>
        <WordDetect String="bibtex" insensitive="true" context="HighlightingBibTeXCodeEnv"/>
        <WordDetect String="bib" insensitive="true" context="HighlightingBibTeXCodeEnv"/>
        <WordDetect String="boo" insensitive="true" context="HighlightingBooCodeEnv"/>
        <WordDetect String="c" insensitive="true" context="HighlightingCCodeEnv"/>
        <WordDetect String="cmake" insensitive="true" context="HighlightingCMakeCodeEnv"/>
        <WordDetect String="csharp" insensitive="true" context="HighlightingC#CodeEnv"/>
        <WordDetect String="cs" insensitive="true" context="HighlightingC#CodeEnv"/>
        <WordDetect String="clojure" insensitive="true" context="HighlightingClojureCodeEnv"/>
        <WordDetect String="clj" insensitive="true" context="HighlightingClojureCodeEnv"/>
        <WordDetect String="coffee" insensitive="true" context="HighlightingCoffeeScriptCodeEnv"/>
        <WordDetect String="commonlisp" insensitive="true" context="HighlightingCommon LispCodeEnv"/>
        <WordDetect String="cl" insensitive="true" context="HighlightingCommon LispCodeEnv"/>
        <WordDetect String="lisp" insensitive="true" context="HighlightingCommon LispCodeEnv"/>
        <WordDetect String="cpp" insensitive="true" context="HighlightingC++CodeEnv"/>
        <WordDetect String="css" insensitive="true" context="HighlightingCSSCodeEnv"/>
        <WordDetect String="d" insensitive="true" context="HighlightingDCodeEnv"/>
        <WordDetect String="dart" insensitive="true" context="HighlightingDartCodeEnv"/>
        <WordDetect String="delphi" insensitive="true" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="pas" insensitive="true" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="pascal" insensitive="true" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="objectpascal" insensitive="true" context="HighlightingPascalCodeEnv"/>
        <WordDetect String="diff" insensitive="true" context="HighlightingDiffCodeEnv"/>
        <WordDetect String="udiff" insensitive="true" context="HighlightingDiffCodeEnv"/>
        <WordDetect String="dtd" insensitive="true" context="HighlightingDTDCodeEnv"/>
        <WordDetect String="eiffel" insensitive="true" context="HighlightingEiffelCodeEnv"/>
        <WordDetect String="elixir" insensitive="true" context="HighlightingElixirCodeEnv"/>
        <WordDetect String="ex" insensitive="true" context="HighlightingElixirCodeEnv"/>
        <WordDetect String="exs" insensitive="true" context="HighlightingElixirCodeEnv"/>
        <WordDetect String="elm" insensitive="true" context="HighlightingElmCodeEnv"/>
        <WordDetect String="email" insensitive="true" context="HighlightingEmailCodeEnv"/>
        <WordDetect String="eml" insensitive="true" context="HighlightingEmailCodeEnv"/>
        <WordDetect String="erlang" insensitive="true" context="HighlightingErlangCodeEnv"/>
        <WordDetect String="fish" insensitive="true" context="HighlightingFishCodeEnv"/>
        <WordDetect String="fishshell" insensitive="true" context="HighlightingFishCodeEnv"/>
        <WordDetect String="forth" insensitive="true" context="HighlightingANS-Forth94CodeEnv"/>
        <WordDetect String="fortranfixed" insensitive="true" context="HighlightingFortran (Fixed Format)CodeEnv"/>
        <WordDetect String="fortran" insensitive="true" context="HighlightingFortran (Free Format)CodeEnv"/>
        <WordDetect String="f" insensitive="true" context="HighlightingFortran (Free Format)CodeEnv"/>
        <WordDetect String="gap" insensitive="true" context="HighlightingGAPCodeEnv"/>
        <WordDetect String="gdscript" insensitive="true" context="HighlightingGodotCodeEnv"/>
        <WordDetect String="gd" insensitive="true" context="HighlightingGodotCodeEnv"/>
        <WordDetect String="glsl" insensitive="true" context="HighlightingGLSLCodeEnv"/>
        <WordDetect String="gcode" insensitive="true" context="HighlightingG-CodeCodeEnv"/>
        <WordDetect String="gnuplot" insensitive="true" context="HighlightingGnuplotCodeEnv"/>
        <WordDetect String="go" insensitive="true" context="HighlightingGoCodeEnv"/>
        <WordDetect String="golang" insensitive="true" context="HighlightingGoCodeEnv"/>
        <WordDetect String="groovy" insensitive="true" context="HighlightingGroovyCodeEnv"/>
        <WordDetect String="haml" insensitive="true" context="HighlightingHamlCodeEnv"/>
        <WordDetect String="haskell" insensitive="true" context="HighlightingHaskellCodeEnv"/>
        <WordDetect String="hs" insensitive="true" context="HighlightingHaskellCodeEnv"/>
        <WordDetect String="haxe" insensitive="true" context="HighlightingHaxeCodeEnv"/>
        <WordDetect String="hxsl" insensitive="true" context="HighlightingHaxeCodeEnv"/>
        <WordDetect String="hx" insensitive="true" context="HighlightingHaxeCodeEnv"/>
        <WordDetect String="html" insensitive="true" context="HighlightingHTMLCodeEnv"/>
        <WordDetect String="idl" insensitive="true" context="HighlightingIDLCodeEnv"/>
        <WordDetect String="idris" insensitive="true" context="HighlightingIdrisCodeEnv"/>
        <WordDetect String="idr" insensitive="true" context="HighlightingIdrisCodeEnv"/>
        <WordDetect String="inform" insensitive="true" context="HighlightingInformCodeEnv"/>
        <WordDetect String="i" insensitive="true" context="HighlightingInformCodeEnv"/>
        <WordDetect String="ini" insensitive="true" context="HighlightingINI FilesCodeEnv"/>
        <WordDetect String="cfg" insensitive="true" context="HighlightingINI FilesCodeEnv"/>
        <WordDetect String="dosini" insensitive="true" context="HighlightingINI FilesCodeEnv"/>
        <WordDetect String="j" insensitive="true" context="HighlightingJCodeEnv"/>
        <WordDetect String="java" insensitive="true" context="HighlightingJavaCodeEnv"/>
        <WordDetect String="javascript" insensitive="true" context="HighlightingJavaScriptCodeEnv"/>
        <WordDetect String="js" insensitive="true" context="HighlightingJavaScriptCodeEnv"/>
        <WordDetect String="jcl" insensitive="true" context="HighlightingJCLCodeEnv"/>
        <WordDetect String="json" insensitive="true" context="HighlightingJSONCodeEnv"/>
        <WordDetect String="jsonobject" insensitive="true" context="HighlightingJSONCodeEnv"/>
        <WordDetect String="julia" insensitive="true" context="HighlightingJuliaCodeEnv"/>
        <WordDetect String="jl" insensitive="true" context="HighlightingJuliaCodeEnv"/>
        <WordDetect String="kconfig" insensitive="true" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="menuconfig" insensitive="true" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="linuxconfig" insensitive="true" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="kernelconfig" insensitive="true" context="HighlightingKconfigCodeEnv"/>
        <WordDetect String="kotlin" insensitive="true" context="HighlightingKotlinCodeEnv"/>
        <WordDetect String="lsl" insensitive="true" context="HighlightingLSLCodeEnv"/>
        <WordDetect String="less" insensitive="true" context="HighlightingLESSCSSCodeEnv"/>
        <WordDetect String="lilypond" insensitive="true" context="HighlightingLilyPondCodeEnv"/>
        <WordDetect String="literatehaskell" insensitive="true" context="HighlightingLiterate HaskellCodeEnv"/>
        <WordDetect String="lhaskell" insensitive="true" context="HighlightingLiterate HaskellCodeEnv"/>
        <WordDetect String="lhs" insensitive="true" context="HighlightingLiterate HaskellCodeEnv"/>
        <WordDetect String="llvm" insensitive="true" context="HighlightingLLVMCodeEnv"/>
        <WordDetect String="logtalk" insensitive="true" context="HighlightingLogtalkCodeEnv"/>
        <WordDetect String="lua" insensitive="true" context="HighlightingLuaCodeEnv"/>
        <WordDetect String="make" insensitive="true" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="makefile" insensitive="true" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="mf" insensitive="true" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="bsdmake" insensitive="true" context="HighlightingMakefileCodeEnv"/>
        <WordDetect String="mako" insensitive="true" context="HighlightingMakoCodeEnv"/>
        <WordDetect String="markdown" insensitive="true" context="HighlightingMarkdownCodeEnv"/>
        <WordDetect String="md" insensitive="true" context="HighlightingMarkdownCodeEnv"/>
        <WordDetect String="mason" insensitive="true" context="HighlightingMasonCodeEnv"/>
        <WordDetect String="mathematica" insensitive="true" context="HighlightingMathematicaCodeEnv"/>
        <WordDetect String="mma" insensitive="true" context="HighlightingMathematicaCodeEnv"/>
        <WordDetect String="nb" insensitive="true" context="HighlightingMathematicaCodeEnv"/>
        <WordDetect String="matlab" insensitive="true" context="HighlightingMatlabCodeEnv"/>
        <WordDetect String="maxima" insensitive="true" context="HighlightingMaximaCodeEnv"/>
        <WordDetect String="macsyma" insensitive="true" context="HighlightingMaximaCodeEnv"/>
        <WordDetect String="meson" insensitive="true" context="HighlightingMesonCodeEnv"/>
        <WordDetect String="mesonbuild" insensitive="true" context="HighlightingMesonCodeEnv"/>
        <WordDetect String="modelica" insensitive="true" context="HighlightingModelicaCodeEnv"/>
        <WordDetect String="modula" insensitive="true" context="HighlightingModula-2CodeEnv"/>
        <WordDetect String="m" insensitive="true" context="HighlightingModula-2CodeEnv"/>
        <WordDetect String="mysql" insensitive="true" context="HighlightingSQL (MySQL)CodeEnv"/>
        <WordDetect String="nsis" insensitive="true" context="HighlightingNSISCodeEnv"/>
        <WordDetect String="nsi" insensitive="true" context="HighlightingNSISCodeEnv"/>
        <WordDetect String="nsh" insensitive="true" context="HighlightingNSISCodeEnv"/>
        <WordDetect String="nasm" insensitive="true" context="HighlightingIntel x86 (NASM)CodeEnv"/>
        <WordDetect String="nemerle" insensitive="true" context="HighlightingNemerleCodeEnv"/>
        <WordDetect String="nesc" insensitive="true" context="HighlightingnesCCodeEnv"/>
        <WordDetect String="nimrod" insensitive="true" context="HighlightingNimCodeEnv"/>
        <WordDetect String="nim" insensitive="true" context="HighlightingNimCodeEnv"/>
        <WordDetect String="nixos" insensitive="true" context="HighlightingNixCodeEnv"/>
        <WordDetect String="nix" insensitive="true" context="HighlightingNixCodeEnv"/>
        <WordDetect String="objectivec" insensitive="true" context="HighlightingObjective-CCodeEnv"/>
        <WordDetect String="objc" insensitive="true" context="HighlightingObjective-CCodeEnv"/>
        <WordDetect String="objectivecpp" insensitive="true" context="HighlightingObjective-C++CodeEnv"/>
        <WordDetect String="objcpp" insensitive="true" context="HighlightingObjective-C++CodeEnv"/>
        <WordDetect String="ocaml" insensitive="true" context="HighlightingObjective CamlCodeEnv"/>
        <WordDetect String="octave" insensitive="true" context="HighlightingOctaveCodeEnv"/>
        <WordDetect String="perl" insensitive="true" context="HighlightingPerlCodeEnv"/>
        <WordDetect String="pl" insensitive="true" context="HighlightingPerlCodeEnv"/>
        <WordDetect String="php" insensitive="true" context="HighlightingPHP/PHPCodeEnv"/>
        <WordDetect String="pig" insensitive="true" context="HighlightingPigCodeEnv"/>
        <WordDetect String="pike" insensitive="true" context="HighlightingPikeCodeEnv"/>
        <WordDetect String="pony" insensitive="true" context="HighlightingPonyCodeEnv"/>
        <WordDetect String="postscript" insensitive="true" context="HighlightingPostScriptCodeEnv"/>
        <WordDetect String="postscr" insensitive="true" context="HighlightingPostScriptCodeEnv"/>
        <WordDetect String="pov" insensitive="true" context="HighlightingPOV-RayCodeEnv"/>
        <WordDetect String="powershell" insensitive="true" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="pwsh" insensitive="true" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="posh" insensitive="true" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="ps" insensitive="true" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="psm" insensitive="true" context="HighlightingPowerShellCodeEnv"/>
        <WordDetect String="praat" insensitive="true" context="HighlightingPraatCodeEnv"/>
        <WordDetect String="prolog" insensitive="true" context="HighlightingPrologCodeEnv"/>
        <WordDetect String="protobuf" insensitive="true" context="HighlightingProtobufCodeEnv"/>
        <WordDetect String="proto" insensitive="true" context="HighlightingProtobufCodeEnv"/>
        <WordDetect String="pug" insensitive="true" context="HighlightingPugCodeEnv"/>
        <WordDetect String="jade" insensitive="true" context="HighlightingPugCodeEnv"/>
        <WordDetect String="puppet" insensitive="true" context="HighlightingPuppetCodeEnv"/>
        <WordDetect String="python" insensitive="true" context="HighlightingPythonCodeEnv"/>
        <WordDetect String="py" insensitive="true" context="HighlightingPythonCodeEnv"/>
        <WordDetect String="sage" insensitive="true" context="HighlightingPythonCodeEnv"/>
        <WordDetect String="qml" insensitive="true" context="HighlightingQMLCodeEnv"/>
        <WordDetect String="qbs" insensitive="true" context="HighlightingQMLCodeEnv"/>
        <WordDetect String="rngcompact" insensitive="true" context="HighlightingRelaxNG-CompactCodeEnv"/>
        <WordDetect String="rnc" insensitive="true" context="HighlightingRelaxNG-CompactCodeEnv"/>
        <WordDetect String="spec" insensitive="true" context="HighlightingRPM SpecCodeEnv"/>
        <WordDetect String="racket" insensitive="true" context="HighlightingRacketCodeEnv"/>
        <WordDetect String="rkt" insensitive="true" context="HighlightingRacketCodeEnv"/>
        <WordDetect String="rexx" insensitive="true" context="HighlightingREXXCodeEnv"/>
        <WordDetect String="arexx" insensitive="true" context="HighlightingREXXCodeEnv"/>
        <WordDetect String="rhtml" insensitive="true" context="HighlightingRuby/Rails/RHTMLCodeEnv"/>
        <WordDetect String="htmlerb" insensitive="true" context="HighlightingRuby/Rails/RHTMLCodeEnv"/>
        <WordDetect String="htmlruby" insensitive="true" context="HighlightingRuby/Rails/RHTMLCodeEnv"/>
        <WordDetect String="rst" insensitive="true" context="HighlightingreStructuredTextCodeEnv"/>
        <WordDetect String="rest" insensitive="true" context="HighlightingreStructuredTextCodeEnv"/>
        <WordDetect String="ruby" insensitive="true" context="HighlightingRubyCodeEnv"/>
        <WordDetect String="rb" insensitive="true" context="HighlightingRubyCodeEnv"/>
        <WordDetect String="duby" insensitive="true" context="HighlightingRubyCodeEnv"/>
        <WordDetect String="rust" insensitive="true" context="HighlightingRustCodeEnv"/>
        <WordDetect String="rs" insensitive="true" context="HighlightingRustCodeEnv"/>
        <WordDetect String="sml" insensitive="true" context="HighlightingSMLCodeEnv"/>
        <WordDetect String="sass" insensitive="true" context="HighlightingSASSCodeEnv"/>
        <WordDetect String="scala" insensitive="true" context="HighlightingScalaCodeEnv"/>
        <WordDetect String="scheme" insensitive="true" context="HighlightingSchemeCodeEnv"/>
        <WordDetect String="scm" insensitive="true" context="HighlightingSchemeCodeEnv"/>
        <WordDetect String="scilab" insensitive="true" context="HighlightingscilabCodeEnv"/>
        <WordDetect String="scss" insensitive="true" context="HighlightingSCSSCodeEnv"/>
        <WordDetect String="sed" insensitive="true" context="HighlightingsedCodeEnv"/>
        <WordDetect String="gsed" insensitive="true" context="HighlightingsedCodeEnv"/>
        <WordDetect String="ssed" insensitive="true" context="HighlightingsedCodeEnv"/>
        <WordDetect String="sieve" insensitive="true" context="HighlightingSieveCodeEnv"/>
        <WordDetect String="smali" insensitive="true" context="HighlightingSmaliCodeEnv"/>
        <WordDetect String="solidity" insensitive="true" context="HighlightingSolidityCodeEnv"/>
        <WordDetect String="spice" insensitive="true" context="HighlightingSpiceCodeEnv"/>
        <WordDetect String="spicelang" insensitive="true" context="HighlightingSpiceCodeEnv"/>
        <WordDetect String="sql" insensitive="true" context="HighlightingSQLCodeEnv"/>
        <WordDetect String="stan" insensitive="true" context="HighlightingStanCodeEnv"/>
        <WordDetect String="stata" insensitive="true" context="HighlightingStataCodeEnv"/>
        <WordDetect String="do" insensitive="true" context="HighlightingStataCodeEnv"/>
        <WordDetect String="swift" insensitive="true" context="HighlightingSwiftCodeEnv"/>
        <WordDetect String="systemverilog" insensitive="true" context="HighlightingSystemVerilogCodeEnv"/>
        <WordDetect String="sv" insensitive="true" context="HighlightingSystemVerilogCodeEnv"/>
        <WordDetect String="toml" insensitive="true" context="HighlightingTOMLCodeEnv"/>
        <WordDetect String="tads" insensitive="true" context="HighlightingTADS 3CodeEnv"/>
        <WordDetect String="tcl" insensitive="true" context="HighlightingTcl/TkCodeEnv"/>
        <WordDetect String="tcsh" insensitive="true" context="HighlightingTcshCodeEnv"/>
        <WordDetect String="csh" insensitive="true" context="HighlightingTcshCodeEnv"/>
        <WordDetect String="terraform" insensitive="true" context="HighlightingTerraformCodeEnv"/>
        <WordDetect String="tf" insensitive="true" context="HighlightingTerraformCodeEnv"/>
        <WordDetect String="tex" insensitive="true" context="HighlightingLaTeXCodeEnv"/>
        <WordDetect String="latex" insensitive="true" context="HighlightingLaTeXCodeEnv"/>
        <WordDetect String="todotxt" insensitive="true" context="HighlightingTodo.txtCodeEnv"/>
        <WordDetect String="typescript" insensitive="true" context="HighlightingTypeScriptCodeEnv"/>
        <WordDetect String="ts" insensitive="true" context="HighlightingTypeScriptCodeEnv"/>
        <WordDetect String="vala" insensitive="true" context="HighlightingValaCodeEnv"/>
        <WordDetect String="vapi" insensitive="true" context="HighlightingValaCodeEnv"/>
        <WordDetect String="velocity" insensitive="true" context="HighlightingVelocityCodeEnv"/>
        <WordDetect String="verilog" insensitive="true" context="HighlightingVerilogCodeEnv"/>
        <WordDetect String="v" insensitive="true" context="HighlightingVerilogCodeEnv"/>
        <WordDetect String="vhdl" insensitive="true" context="HighlightingVHDLCodeEnv"/>
        <WordDetect String="xml" insensitive="true" context="HighlightingXMLCodeEnv"/>
        <WordDetect String="xorgconf" insensitive="true" context="Highlightingx.org ConfigurationCodeEnv"/>
        <WordDetect String="xslt" insensitive="true" context="HighlightingxsltCodeEnv"/>
        <WordDetect String="yaml" insensitive="true" context="HighlightingYAMLCodeEnv"/>
        <WordDetect String="yang" insensitive="true" context="HighlightingYANGCodeEnv"/>
        <AnyChar String="}]" context="#pop!UnknownHighlightingBegin"/>
        <RegExpr String="[^]}]*" context="#stay"/>
      </context>

      <context name="HighlightingCommon" attribute="Normal Text" lineEndContext="#stay">
        <RegExpr String="\\end\s*\{(?:lstlisting|minted|[a-zA-Z]+code)\*?\}" attribute="Structure" lookAhead="true" context="#pop#pop#pop#pop#pop#pop"/>
      </context>

      <context name="HighlightingABAPCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingABAPCodeEnvSParam"/>
      </context>
      <context name="HighlightingABAPCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingABAPCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingABAPCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginABAP"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingABAPCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginABAP"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginABAP" attribute="Normal Text" lineEndContext="#pop!HighlightingABAP">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingABAP" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##ABAP" includeAttrib="true"/>
      </context>

      <context name="HighlightingActionScript 2.0CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingActionScript 2.0CodeEnvSParam"/>
      </context>
      <context name="HighlightingActionScript 2.0CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingActionScript 2.0CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingActionScript 2.0CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginActionScript 2.0"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingActionScript 2.0CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginActionScript 2.0"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginActionScript 2.0" attribute="Normal Text" lineEndContext="#pop!HighlightingActionScript 2.0">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingActionScript 2.0" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##ActionScript 2.0" includeAttrib="true"/>
      </context>

      <context name="HighlightingAdaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingAdaCodeEnvSParam"/>
      </context>
      <context name="HighlightingAdaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingAdaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingAdaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginAda"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingAdaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginAda"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginAda" attribute="Normal Text" lineEndContext="#pop!HighlightingAda">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingAda" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Ada" includeAttrib="true"/>
      </context>

      <context name="HighlightingAgdaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingAgdaCodeEnvSParam"/>
      </context>
      <context name="HighlightingAgdaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingAgdaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingAgdaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginAgda"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingAgdaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginAgda"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginAgda" attribute="Normal Text" lineEndContext="#pop!HighlightingAgda">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingAgda" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Agda" includeAttrib="true"/>
      </context>

      <context name="HighlightingApache ConfigurationCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingApache ConfigurationCodeEnvSParam"/>
      </context>
      <context name="HighlightingApache ConfigurationCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingApache ConfigurationCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingApache ConfigurationCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginApache Configuration"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingApache ConfigurationCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginApache Configuration"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginApache Configuration" attribute="Normal Text" lineEndContext="#pop!HighlightingApache Configuration">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingApache Configuration" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Apache Configuration" includeAttrib="true"/>
      </context>

      <context name="HighlightingAutoHotKeyCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingAutoHotKeyCodeEnvSParam"/>
      </context>
      <context name="HighlightingAutoHotKeyCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingAutoHotKeyCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingAutoHotKeyCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginAutoHotKey"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingAutoHotKeyCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginAutoHotKey"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginAutoHotKey" attribute="Normal Text" lineEndContext="#pop!HighlightingAutoHotKey">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingAutoHotKey" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##AutoHotKey" includeAttrib="true"/>
      </context>

      <context name="HighlightingAWKCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingAWKCodeEnvSParam"/>
      </context>
      <context name="HighlightingAWKCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingAWKCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingAWKCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginAWK"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingAWKCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginAWK"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginAWK" attribute="Normal Text" lineEndContext="#pop!HighlightingAWK">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingAWK" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##AWK" includeAttrib="true"/>
      </context>

      <context name="HighlightingBashCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBashCodeEnvSParam"/>
      </context>
      <context name="HighlightingBashCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingBashCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingBashCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginBash"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingBashCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginBash"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginBash" attribute="Normal Text" lineEndContext="#pop!HighlightingBash">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingBash" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Bash" includeAttrib="true"/>
      </context>

      <context name="HighlightingBibTeXCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBibTeXCodeEnvSParam"/>
      </context>
      <context name="HighlightingBibTeXCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingBibTeXCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingBibTeXCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginBibTeX"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingBibTeXCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginBibTeX"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginBibTeX" attribute="Normal Text" lineEndContext="#pop!HighlightingBibTeX">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingBibTeX" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##BibTeX" includeAttrib="true"/>
      </context>

      <context name="HighlightingBooCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBooCodeEnvSParam"/>
      </context>
      <context name="HighlightingBooCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingBooCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingBooCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginBoo"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingBooCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginBoo"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginBoo" attribute="Normal Text" lineEndContext="#pop!HighlightingBoo">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingBoo" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Boo" includeAttrib="true"/>
      </context>

      <context name="HighlightingCCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingCCodeEnvSParam"/>
      </context>
      <context name="HighlightingCCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingCCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingCCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginC"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingCCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginC"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginC" attribute="Normal Text" lineEndContext="#pop!HighlightingC">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingC" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##C" includeAttrib="true"/>
      </context>

      <context name="HighlightingCMakeCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingCMakeCodeEnvSParam"/>
      </context>
      <context name="HighlightingCMakeCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingCMakeCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingCMakeCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginCMake"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingCMakeCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginCMake"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginCMake" attribute="Normal Text" lineEndContext="#pop!HighlightingCMake">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingCMake" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##CMake" includeAttrib="true"/>
      </context>

      <context name="HighlightingC#CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingC#CodeEnvSParam"/>
      </context>
      <context name="HighlightingC#CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingC#CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingC#CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginC#"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingC#CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginC#"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginC#" attribute="Normal Text" lineEndContext="#pop!HighlightingC#">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingC#" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##C#" includeAttrib="true"/>
      </context>

      <context name="HighlightingClojureCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingClojureCodeEnvSParam"/>
      </context>
      <context name="HighlightingClojureCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingClojureCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingClojureCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginClojure"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingClojureCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginClojure"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginClojure" attribute="Normal Text" lineEndContext="#pop!HighlightingClojure">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingClojure" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Clojure" includeAttrib="true"/>
      </context>

      <context name="HighlightingCoffeeScriptCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingCoffeeScriptCodeEnvSParam"/>
      </context>
      <context name="HighlightingCoffeeScriptCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingCoffeeScriptCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingCoffeeScriptCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginCoffeeScript"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingCoffeeScriptCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginCoffeeScript"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginCoffeeScript" attribute="Normal Text" lineEndContext="#pop!HighlightingCoffeeScript">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingCoffeeScript" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##CoffeeScript" includeAttrib="true"/>
      </context>

      <context name="HighlightingCommon LispCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingCommon LispCodeEnvSParam"/>
      </context>
      <context name="HighlightingCommon LispCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingCommon LispCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingCommon LispCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginCommon Lisp"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingCommon LispCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginCommon Lisp"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginCommon Lisp" attribute="Normal Text" lineEndContext="#pop!HighlightingCommon Lisp">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingCommon Lisp" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Common Lisp" includeAttrib="true"/>
      </context>

      <context name="HighlightingC++CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingC++CodeEnvSParam"/>
      </context>
      <context name="HighlightingC++CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingC++CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingC++CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginC++"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingC++CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginC++"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginC++" attribute="Normal Text" lineEndContext="#pop!HighlightingC++">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingC++" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##C++" includeAttrib="true"/>
      </context>

      <context name="HighlightingCSSCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingCSSCodeEnvSParam"/>
      </context>
      <context name="HighlightingCSSCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingCSSCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingCSSCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginCSS"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingCSSCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginCSS"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginCSS" attribute="Normal Text" lineEndContext="#pop!HighlightingCSS">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingCSS" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##CSS" includeAttrib="true"/>
      </context>

      <context name="HighlightingDCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingDCodeEnvSParam"/>
      </context>
      <context name="HighlightingDCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingDCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingDCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginD"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingDCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginD"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginD" attribute="Normal Text" lineEndContext="#pop!HighlightingD">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingD" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##D" includeAttrib="true"/>
      </context>

      <context name="HighlightingDartCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingDartCodeEnvSParam"/>
      </context>
      <context name="HighlightingDartCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingDartCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingDartCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginDart"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingDartCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginDart"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginDart" attribute="Normal Text" lineEndContext="#pop!HighlightingDart">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingDart" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Dart" includeAttrib="true"/>
      </context>

      <context name="HighlightingPascalCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPascalCodeEnvSParam"/>
      </context>
      <context name="HighlightingPascalCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPascalCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPascalCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPascal"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPascalCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPascal"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPascal" attribute="Normal Text" lineEndContext="#pop!HighlightingPascal">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPascal" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Pascal" includeAttrib="true"/>
      </context>

      <context name="HighlightingDiffCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingDiffCodeEnvSParam"/>
      </context>
      <context name="HighlightingDiffCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingDiffCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingDiffCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginDiff"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingDiffCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginDiff"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginDiff" attribute="Normal Text" lineEndContext="#pop!HighlightingDiff">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingDiff" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Diff" includeAttrib="true"/>
      </context>

      <context name="HighlightingDTDCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingDTDCodeEnvSParam"/>
      </context>
      <context name="HighlightingDTDCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingDTDCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingDTDCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginDTD"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingDTDCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginDTD"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginDTD" attribute="Normal Text" lineEndContext="#pop!HighlightingDTD">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingDTD" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##DTD" includeAttrib="true"/>
      </context>

      <context name="HighlightingEiffelCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingEiffelCodeEnvSParam"/>
      </context>
      <context name="HighlightingEiffelCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingEiffelCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingEiffelCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginEiffel"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingEiffelCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginEiffel"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginEiffel" attribute="Normal Text" lineEndContext="#pop!HighlightingEiffel">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingEiffel" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Eiffel" includeAttrib="true"/>
      </context>

      <context name="HighlightingElixirCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingElixirCodeEnvSParam"/>
      </context>
      <context name="HighlightingElixirCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingElixirCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingElixirCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginElixir"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingElixirCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginElixir"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginElixir" attribute="Normal Text" lineEndContext="#pop!HighlightingElixir">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingElixir" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Elixir" includeAttrib="true"/>
      </context>

      <context name="HighlightingElmCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingElmCodeEnvSParam"/>
      </context>
      <context name="HighlightingElmCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingElmCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingElmCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginElm"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingElmCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginElm"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginElm" attribute="Normal Text" lineEndContext="#pop!HighlightingElm">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingElm" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Elm" includeAttrib="true"/>
      </context>

      <context name="HighlightingEmailCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingEmailCodeEnvSParam"/>
      </context>
      <context name="HighlightingEmailCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingEmailCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingEmailCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginEmail"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingEmailCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginEmail"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginEmail" attribute="Normal Text" lineEndContext="#pop!HighlightingEmail">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingEmail" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Email" includeAttrib="true"/>
      </context>

      <context name="HighlightingErlangCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingErlangCodeEnvSParam"/>
      </context>
      <context name="HighlightingErlangCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingErlangCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingErlangCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginErlang"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingErlangCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginErlang"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginErlang" attribute="Normal Text" lineEndContext="#pop!HighlightingErlang">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingErlang" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Erlang" includeAttrib="true"/>
      </context>

      <context name="HighlightingFishCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingFishCodeEnvSParam"/>
      </context>
      <context name="HighlightingFishCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingFishCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingFishCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginFish"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingFishCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginFish"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginFish" attribute="Normal Text" lineEndContext="#pop!HighlightingFish">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingFish" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Fish" includeAttrib="true"/>
      </context>

      <context name="HighlightingANS-Forth94CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingANS-Forth94CodeEnvSParam"/>
      </context>
      <context name="HighlightingANS-Forth94CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingANS-Forth94CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingANS-Forth94CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginANS-Forth94"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingANS-Forth94CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginANS-Forth94"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginANS-Forth94" attribute="Normal Text" lineEndContext="#pop!HighlightingANS-Forth94">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingANS-Forth94" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##ANS-Forth94" includeAttrib="true"/>
      </context>

      <context name="HighlightingFortran (Fixed Format)CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingFortran (Fixed Format)CodeEnvSParam"/>
      </context>
      <context name="HighlightingFortran (Fixed Format)CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingFortran (Fixed Format)CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingFortran (Fixed Format)CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginFortran (Fixed Format)"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingFortran (Fixed Format)CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginFortran (Fixed Format)"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginFortran (Fixed Format)" attribute="Normal Text" lineEndContext="#pop!HighlightingFortran (Fixed Format)">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingFortran (Fixed Format)" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Fortran (Fixed Format)" includeAttrib="true"/>
      </context>

      <context name="HighlightingFortran (Free Format)CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingFortran (Free Format)CodeEnvSParam"/>
      </context>
      <context name="HighlightingFortran (Free Format)CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingFortran (Free Format)CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingFortran (Free Format)CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginFortran (Free Format)"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingFortran (Free Format)CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginFortran (Free Format)"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginFortran (Free Format)" attribute="Normal Text" lineEndContext="#pop!HighlightingFortran (Free Format)">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingFortran (Free Format)" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Fortran (Free Format)" includeAttrib="true"/>
      </context>

      <context name="HighlightingGAPCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingGAPCodeEnvSParam"/>
      </context>
      <context name="HighlightingGAPCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingGAPCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingGAPCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginGAP"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingGAPCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginGAP"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginGAP" attribute="Normal Text" lineEndContext="#pop!HighlightingGAP">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingGAP" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##GAP" includeAttrib="true"/>
      </context>

      <context name="HighlightingGodotCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingGodotCodeEnvSParam"/>
      </context>
      <context name="HighlightingGodotCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingGodotCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingGodotCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginGodot"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingGodotCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginGodot"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginGodot" attribute="Normal Text" lineEndContext="#pop!HighlightingGodot">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingGodot" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Godot" includeAttrib="true"/>
      </context>

      <context name="HighlightingGLSLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingGLSLCodeEnvSParam"/>
      </context>
      <context name="HighlightingGLSLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingGLSLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingGLSLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginGLSL"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingGLSLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginGLSL"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginGLSL" attribute="Normal Text" lineEndContext="#pop!HighlightingGLSL">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingGLSL" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##GLSL" includeAttrib="true"/>
      </context>

      <context name="HighlightingG-CodeCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingG-CodeCodeEnvSParam"/>
      </context>
      <context name="HighlightingG-CodeCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingG-CodeCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingG-CodeCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginG-Code"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingG-CodeCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginG-Code"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginG-Code" attribute="Normal Text" lineEndContext="#pop!HighlightingG-Code">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingG-Code" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##G-Code" includeAttrib="true"/>
      </context>

      <context name="HighlightingGnuplotCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingGnuplotCodeEnvSParam"/>
      </context>
      <context name="HighlightingGnuplotCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingGnuplotCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingGnuplotCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginGnuplot"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingGnuplotCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginGnuplot"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginGnuplot" attribute="Normal Text" lineEndContext="#pop!HighlightingGnuplot">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingGnuplot" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Gnuplot" includeAttrib="true"/>
      </context>

      <context name="HighlightingGoCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingGoCodeEnvSParam"/>
      </context>
      <context name="HighlightingGoCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingGoCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingGoCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginGo"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingGoCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginGo"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginGo" attribute="Normal Text" lineEndContext="#pop!HighlightingGo">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingGo" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Go" includeAttrib="true"/>
      </context>

      <context name="HighlightingGroovyCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingGroovyCodeEnvSParam"/>
      </context>
      <context name="HighlightingGroovyCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingGroovyCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingGroovyCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginGroovy"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingGroovyCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginGroovy"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginGroovy" attribute="Normal Text" lineEndContext="#pop!HighlightingGroovy">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingGroovy" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Groovy" includeAttrib="true"/>
      </context>

      <context name="HighlightingHamlCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingHamlCodeEnvSParam"/>
      </context>
      <context name="HighlightingHamlCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingHamlCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingHamlCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginHaml"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingHamlCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginHaml"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginHaml" attribute="Normal Text" lineEndContext="#pop!HighlightingHaml">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingHaml" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Haml" includeAttrib="true"/>
      </context>

      <context name="HighlightingHaskellCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingHaskellCodeEnvSParam"/>
      </context>
      <context name="HighlightingHaskellCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingHaskellCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingHaskellCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginHaskell"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingHaskellCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginHaskell"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginHaskell" attribute="Normal Text" lineEndContext="#pop!HighlightingHaskell">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingHaskell" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Haskell" includeAttrib="true"/>
      </context>

      <context name="HighlightingHaxeCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingHaxeCodeEnvSParam"/>
      </context>
      <context name="HighlightingHaxeCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingHaxeCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingHaxeCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginHaxe"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingHaxeCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginHaxe"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginHaxe" attribute="Normal Text" lineEndContext="#pop!HighlightingHaxe">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingHaxe" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Haxe" includeAttrib="true"/>
      </context>

      <context name="HighlightingHTMLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingHTMLCodeEnvSParam"/>
      </context>
      <context name="HighlightingHTMLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingHTMLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingHTMLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginHTML"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingHTMLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginHTML"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginHTML" attribute="Normal Text" lineEndContext="#pop!HighlightingHTML">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingHTML" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##HTML" includeAttrib="true"/>
      </context>

      <context name="HighlightingIDLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingIDLCodeEnvSParam"/>
      </context>
      <context name="HighlightingIDLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingIDLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingIDLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginIDL"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingIDLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginIDL"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginIDL" attribute="Normal Text" lineEndContext="#pop!HighlightingIDL">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingIDL" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##IDL" includeAttrib="true"/>
      </context>

      <context name="HighlightingIdrisCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingIdrisCodeEnvSParam"/>
      </context>
      <context name="HighlightingIdrisCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingIdrisCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingIdrisCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginIdris"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingIdrisCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginIdris"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginIdris" attribute="Normal Text" lineEndContext="#pop!HighlightingIdris">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingIdris" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Idris" includeAttrib="true"/>
      </context>

      <context name="HighlightingInformCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingInformCodeEnvSParam"/>
      </context>
      <context name="HighlightingInformCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingInformCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingInformCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginInform"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingInformCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginInform"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginInform" attribute="Normal Text" lineEndContext="#pop!HighlightingInform">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingInform" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Inform" includeAttrib="true"/>
      </context>

      <context name="HighlightingINI FilesCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingINI FilesCodeEnvSParam"/>
      </context>
      <context name="HighlightingINI FilesCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingINI FilesCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingINI FilesCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginINI Files"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingINI FilesCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginINI Files"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginINI Files" attribute="Normal Text" lineEndContext="#pop!HighlightingINI Files">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingINI Files" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##INI Files" includeAttrib="true"/>
      </context>

      <context name="HighlightingJCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingJCodeEnvSParam"/>
      </context>
      <context name="HighlightingJCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingJCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingJCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginJ"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingJCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginJ"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginJ" attribute="Normal Text" lineEndContext="#pop!HighlightingJ">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingJ" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##J" includeAttrib="true"/>
      </context>

      <context name="HighlightingJavaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingJavaCodeEnvSParam"/>
      </context>
      <context name="HighlightingJavaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingJavaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingJavaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginJava"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingJavaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginJava"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginJava" attribute="Normal Text" lineEndContext="#pop!HighlightingJava">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingJava" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Java" includeAttrib="true"/>
      </context>

      <context name="HighlightingJavaScriptCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingJavaScriptCodeEnvSParam"/>
      </context>
      <context name="HighlightingJavaScriptCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingJavaScriptCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingJavaScriptCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginJavaScript"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingJavaScriptCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginJavaScript"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginJavaScript" attribute="Normal Text" lineEndContext="#pop!HighlightingJavaScript">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingJavaScript" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##JavaScript" includeAttrib="true"/>
      </context>

      <context name="HighlightingJCLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingJCLCodeEnvSParam"/>
      </context>
      <context name="HighlightingJCLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingJCLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingJCLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginJCL"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingJCLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginJCL"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginJCL" attribute="Normal Text" lineEndContext="#pop!HighlightingJCL">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingJCL" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##JCL" includeAttrib="true"/>
      </context>

      <context name="HighlightingJSONCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingJSONCodeEnvSParam"/>
      </context>
      <context name="HighlightingJSONCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingJSONCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingJSONCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginJSON"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingJSONCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginJSON"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginJSON" attribute="Normal Text" lineEndContext="#pop!HighlightingJSON">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingJSON" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##JSON" includeAttrib="true"/>
      </context>

      <context name="HighlightingJuliaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingJuliaCodeEnvSParam"/>
      </context>
      <context name="HighlightingJuliaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingJuliaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingJuliaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginJulia"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingJuliaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginJulia"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginJulia" attribute="Normal Text" lineEndContext="#pop!HighlightingJulia">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingJulia" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Julia" includeAttrib="true"/>
      </context>

      <context name="HighlightingKconfigCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingKconfigCodeEnvSParam"/>
      </context>
      <context name="HighlightingKconfigCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingKconfigCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingKconfigCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginKconfig"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingKconfigCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginKconfig"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginKconfig" attribute="Normal Text" lineEndContext="#pop!HighlightingKconfig">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingKconfig" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Kconfig" includeAttrib="true"/>
      </context>

      <context name="HighlightingKotlinCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingKotlinCodeEnvSParam"/>
      </context>
      <context name="HighlightingKotlinCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingKotlinCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingKotlinCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginKotlin"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingKotlinCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginKotlin"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginKotlin" attribute="Normal Text" lineEndContext="#pop!HighlightingKotlin">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingKotlin" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Kotlin" includeAttrib="true"/>
      </context>

      <context name="HighlightingLSLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLSLCodeEnvSParam"/>
      </context>
      <context name="HighlightingLSLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLSLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLSLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLSL"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLSLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLSL"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLSL" attribute="Normal Text" lineEndContext="#pop!HighlightingLSL">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLSL" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##LSL" includeAttrib="true"/>
      </context>

      <context name="HighlightingLESSCSSCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLESSCSSCodeEnvSParam"/>
      </context>
      <context name="HighlightingLESSCSSCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLESSCSSCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLESSCSSCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLESSCSS"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLESSCSSCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLESSCSS"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLESSCSS" attribute="Normal Text" lineEndContext="#pop!HighlightingLESSCSS">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLESSCSS" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##LESSCSS" includeAttrib="true"/>
      </context>

      <context name="HighlightingLilyPondCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLilyPondCodeEnvSParam"/>
      </context>
      <context name="HighlightingLilyPondCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLilyPondCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLilyPondCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLilyPond"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLilyPondCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLilyPond"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLilyPond" attribute="Normal Text" lineEndContext="#pop!HighlightingLilyPond">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLilyPond" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##LilyPond" includeAttrib="true"/>
      </context>

      <context name="HighlightingLiterate HaskellCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLiterate HaskellCodeEnvSParam"/>
      </context>
      <context name="HighlightingLiterate HaskellCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLiterate HaskellCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLiterate HaskellCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLiterate Haskell"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLiterate HaskellCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLiterate Haskell"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLiterate Haskell" attribute="Normal Text" lineEndContext="#pop!HighlightingLiterate Haskell">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLiterate Haskell" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Literate Haskell" includeAttrib="true"/>
      </context>

      <context name="HighlightingLLVMCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLLVMCodeEnvSParam"/>
      </context>
      <context name="HighlightingLLVMCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLLVMCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLLVMCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLLVM"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLLVMCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLLVM"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLLVM" attribute="Normal Text" lineEndContext="#pop!HighlightingLLVM">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLLVM" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##LLVM" includeAttrib="true"/>
      </context>

      <context name="HighlightingLogtalkCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLogtalkCodeEnvSParam"/>
      </context>
      <context name="HighlightingLogtalkCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLogtalkCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLogtalkCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLogtalk"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLogtalkCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLogtalk"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLogtalk" attribute="Normal Text" lineEndContext="#pop!HighlightingLogtalk">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLogtalk" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Logtalk" includeAttrib="true"/>
      </context>

      <context name="HighlightingLuaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLuaCodeEnvSParam"/>
      </context>
      <context name="HighlightingLuaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLuaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLuaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLua"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLuaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLua"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLua" attribute="Normal Text" lineEndContext="#pop!HighlightingLua">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLua" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Lua" includeAttrib="true"/>
      </context>

      <context name="HighlightingMakefileCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMakefileCodeEnvSParam"/>
      </context>
      <context name="HighlightingMakefileCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMakefileCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMakefileCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMakefile"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMakefileCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMakefile"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMakefile" attribute="Normal Text" lineEndContext="#pop!HighlightingMakefile">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMakefile" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Makefile" includeAttrib="true"/>
      </context>

      <context name="HighlightingMakoCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMakoCodeEnvSParam"/>
      </context>
      <context name="HighlightingMakoCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMakoCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMakoCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMako"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMakoCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMako"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMako" attribute="Normal Text" lineEndContext="#pop!HighlightingMako">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMako" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Mako" includeAttrib="true"/>
      </context>

      <context name="HighlightingMarkdownCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMarkdownCodeEnvSParam"/>
      </context>
      <context name="HighlightingMarkdownCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMarkdownCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMarkdownCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMarkdown"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMarkdownCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMarkdown"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMarkdown" attribute="Normal Text" lineEndContext="#pop!HighlightingMarkdown">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMarkdown" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Markdown" includeAttrib="true"/>
      </context>

      <context name="HighlightingMasonCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMasonCodeEnvSParam"/>
      </context>
      <context name="HighlightingMasonCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMasonCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMasonCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMason"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMasonCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMason"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMason" attribute="Normal Text" lineEndContext="#pop!HighlightingMason">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMason" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Mason" includeAttrib="true"/>
      </context>

      <context name="HighlightingMathematicaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMathematicaCodeEnvSParam"/>
      </context>
      <context name="HighlightingMathematicaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMathematicaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMathematicaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMathematica"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMathematicaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMathematica"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMathematica" attribute="Normal Text" lineEndContext="#pop!HighlightingMathematica">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMathematica" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Mathematica" includeAttrib="true"/>
      </context>

      <context name="HighlightingMatlabCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMatlabCodeEnvSParam"/>
      </context>
      <context name="HighlightingMatlabCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMatlabCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMatlabCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMatlab"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMatlabCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMatlab"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMatlab" attribute="Normal Text" lineEndContext="#pop!HighlightingMatlab">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMatlab" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Matlab" includeAttrib="true"/>
      </context>

      <context name="HighlightingMaximaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMaximaCodeEnvSParam"/>
      </context>
      <context name="HighlightingMaximaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMaximaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMaximaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMaxima"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMaximaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMaxima"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMaxima" attribute="Normal Text" lineEndContext="#pop!HighlightingMaxima">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMaxima" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Maxima" includeAttrib="true"/>
      </context>

      <context name="HighlightingMesonCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingMesonCodeEnvSParam"/>
      </context>
      <context name="HighlightingMesonCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingMesonCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingMesonCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginMeson"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingMesonCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginMeson"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginMeson" attribute="Normal Text" lineEndContext="#pop!HighlightingMeson">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingMeson" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Meson" includeAttrib="true"/>
      </context>

      <context name="HighlightingModelicaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingModelicaCodeEnvSParam"/>
      </context>
      <context name="HighlightingModelicaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingModelicaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingModelicaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginModelica"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingModelicaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginModelica"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginModelica" attribute="Normal Text" lineEndContext="#pop!HighlightingModelica">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingModelica" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Modelica" includeAttrib="true"/>
      </context>

      <context name="HighlightingModula-2CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingModula-2CodeEnvSParam"/>
      </context>
      <context name="HighlightingModula-2CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingModula-2CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingModula-2CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginModula-2"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingModula-2CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginModula-2"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginModula-2" attribute="Normal Text" lineEndContext="#pop!HighlightingModula-2">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingModula-2" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Modula-2" includeAttrib="true"/>
      </context>

      <context name="HighlightingSQL (MySQL)CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSQL (MySQL)CodeEnvSParam"/>
      </context>
      <context name="HighlightingSQL (MySQL)CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSQL (MySQL)CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSQL (MySQL)CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSQL (MySQL)"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSQL (MySQL)CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSQL (MySQL)"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSQL (MySQL)" attribute="Normal Text" lineEndContext="#pop!HighlightingSQL (MySQL)">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSQL (MySQL)" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##SQL (MySQL)" includeAttrib="true"/>
      </context>

      <context name="HighlightingNSISCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingNSISCodeEnvSParam"/>
      </context>
      <context name="HighlightingNSISCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingNSISCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingNSISCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginNSIS"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingNSISCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginNSIS"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginNSIS" attribute="Normal Text" lineEndContext="#pop!HighlightingNSIS">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingNSIS" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##NSIS" includeAttrib="true"/>
      </context>

      <context name="HighlightingIntel x86 (NASM)CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingIntel x86 (NASM)CodeEnvSParam"/>
      </context>
      <context name="HighlightingIntel x86 (NASM)CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingIntel x86 (NASM)CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingIntel x86 (NASM)CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginIntel x86 (NASM)"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingIntel x86 (NASM)CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginIntel x86 (NASM)"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginIntel x86 (NASM)" attribute="Normal Text" lineEndContext="#pop!HighlightingIntel x86 (NASM)">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingIntel x86 (NASM)" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Intel x86 (NASM)" includeAttrib="true"/>
      </context>

      <context name="HighlightingNemerleCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingNemerleCodeEnvSParam"/>
      </context>
      <context name="HighlightingNemerleCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingNemerleCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingNemerleCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginNemerle"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingNemerleCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginNemerle"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginNemerle" attribute="Normal Text" lineEndContext="#pop!HighlightingNemerle">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingNemerle" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Nemerle" includeAttrib="true"/>
      </context>

      <context name="HighlightingnesCCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingnesCCodeEnvSParam"/>
      </context>
      <context name="HighlightingnesCCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingnesCCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingnesCCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginnesC"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingnesCCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginnesC"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginnesC" attribute="Normal Text" lineEndContext="#pop!HighlightingnesC">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingnesC" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##nesC" includeAttrib="true"/>
      </context>

      <context name="HighlightingNimCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingNimCodeEnvSParam"/>
      </context>
      <context name="HighlightingNimCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingNimCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingNimCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginNim"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingNimCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginNim"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginNim" attribute="Normal Text" lineEndContext="#pop!HighlightingNim">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingNim" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Nim" includeAttrib="true"/>
      </context>

      <context name="HighlightingNixCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingNixCodeEnvSParam"/>
      </context>
      <context name="HighlightingNixCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingNixCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingNixCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginNix"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingNixCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginNix"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginNix" attribute="Normal Text" lineEndContext="#pop!HighlightingNix">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingNix" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Nix" includeAttrib="true"/>
      </context>

      <context name="HighlightingObjective-CCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingObjective-CCodeEnvSParam"/>
      </context>
      <context name="HighlightingObjective-CCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingObjective-CCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingObjective-CCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginObjective-C"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingObjective-CCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginObjective-C"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginObjective-C" attribute="Normal Text" lineEndContext="#pop!HighlightingObjective-C">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingObjective-C" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Objective-C" includeAttrib="true"/>
      </context>

      <context name="HighlightingObjective-C++CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingObjective-C++CodeEnvSParam"/>
      </context>
      <context name="HighlightingObjective-C++CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingObjective-C++CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingObjective-C++CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginObjective-C++"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingObjective-C++CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginObjective-C++"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginObjective-C++" attribute="Normal Text" lineEndContext="#pop!HighlightingObjective-C++">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingObjective-C++" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Objective-C++" includeAttrib="true"/>
      </context>

      <context name="HighlightingObjective CamlCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingObjective CamlCodeEnvSParam"/>
      </context>
      <context name="HighlightingObjective CamlCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingObjective CamlCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingObjective CamlCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginObjective Caml"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingObjective CamlCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginObjective Caml"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginObjective Caml" attribute="Normal Text" lineEndContext="#pop!HighlightingObjective Caml">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingObjective Caml" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Objective Caml" includeAttrib="true"/>
      </context>

      <context name="HighlightingOctaveCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingOctaveCodeEnvSParam"/>
      </context>
      <context name="HighlightingOctaveCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingOctaveCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingOctaveCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginOctave"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingOctaveCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginOctave"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginOctave" attribute="Normal Text" lineEndContext="#pop!HighlightingOctave">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingOctave" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Octave" includeAttrib="true"/>
      </context>

      <context name="HighlightingPerlCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPerlCodeEnvSParam"/>
      </context>
      <context name="HighlightingPerlCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPerlCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPerlCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPerl"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPerlCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPerl"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPerl" attribute="Normal Text" lineEndContext="#pop!HighlightingPerl">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPerl" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Perl" includeAttrib="true"/>
      </context>

      <context name="HighlightingPHP/PHPCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPHP/PHPCodeEnvSParam"/>
      </context>
      <context name="HighlightingPHP/PHPCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPHP/PHPCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPHP/PHPCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPHP/PHP"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPHP/PHPCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPHP/PHP"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPHP/PHP" attribute="Normal Text" lineEndContext="#pop!HighlightingPHP/PHP">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPHP/PHP" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##PHP/PHP" includeAttrib="true"/>
      </context>

      <context name="HighlightingPigCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPigCodeEnvSParam"/>
      </context>
      <context name="HighlightingPigCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPigCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPigCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPig"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPigCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPig"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPig" attribute="Normal Text" lineEndContext="#pop!HighlightingPig">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPig" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Pig" includeAttrib="true"/>
      </context>

      <context name="HighlightingPikeCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPikeCodeEnvSParam"/>
      </context>
      <context name="HighlightingPikeCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPikeCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPikeCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPike"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPikeCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPike"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPike" attribute="Normal Text" lineEndContext="#pop!HighlightingPike">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPike" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Pike" includeAttrib="true"/>
      </context>

      <context name="HighlightingPonyCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPonyCodeEnvSParam"/>
      </context>
      <context name="HighlightingPonyCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPonyCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPonyCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPony"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPonyCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPony"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPony" attribute="Normal Text" lineEndContext="#pop!HighlightingPony">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPony" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Pony" includeAttrib="true"/>
      </context>

      <context name="HighlightingPostScriptCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPostScriptCodeEnvSParam"/>
      </context>
      <context name="HighlightingPostScriptCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPostScriptCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPostScriptCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPostScript"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPostScriptCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPostScript"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPostScript" attribute="Normal Text" lineEndContext="#pop!HighlightingPostScript">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPostScript" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##PostScript" includeAttrib="true"/>
      </context>

      <context name="HighlightingPOV-RayCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPOV-RayCodeEnvSParam"/>
      </context>
      <context name="HighlightingPOV-RayCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPOV-RayCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPOV-RayCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPOV-Ray"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPOV-RayCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPOV-Ray"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPOV-Ray" attribute="Normal Text" lineEndContext="#pop!HighlightingPOV-Ray">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPOV-Ray" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##POV-Ray" includeAttrib="true"/>
      </context>

      <context name="HighlightingPowerShellCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPowerShellCodeEnvSParam"/>
      </context>
      <context name="HighlightingPowerShellCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPowerShellCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPowerShellCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPowerShell"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPowerShellCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPowerShell"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPowerShell" attribute="Normal Text" lineEndContext="#pop!HighlightingPowerShell">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPowerShell" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##PowerShell" includeAttrib="true"/>
      </context>

      <context name="HighlightingPraatCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPraatCodeEnvSParam"/>
      </context>
      <context name="HighlightingPraatCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPraatCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPraatCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPraat"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPraatCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPraat"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPraat" attribute="Normal Text" lineEndContext="#pop!HighlightingPraat">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPraat" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Praat" includeAttrib="true"/>
      </context>

      <context name="HighlightingPrologCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPrologCodeEnvSParam"/>
      </context>
      <context name="HighlightingPrologCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPrologCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPrologCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginProlog"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPrologCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginProlog"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginProlog" attribute="Normal Text" lineEndContext="#pop!HighlightingProlog">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingProlog" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Prolog" includeAttrib="true"/>
      </context>

      <context name="HighlightingProtobufCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingProtobufCodeEnvSParam"/>
      </context>
      <context name="HighlightingProtobufCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingProtobufCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingProtobufCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginProtobuf"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingProtobufCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginProtobuf"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginProtobuf" attribute="Normal Text" lineEndContext="#pop!HighlightingProtobuf">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingProtobuf" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Protobuf" includeAttrib="true"/>
      </context>

      <context name="HighlightingPugCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPugCodeEnvSParam"/>
      </context>
      <context name="HighlightingPugCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPugCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPugCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPug"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPugCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPug"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPug" attribute="Normal Text" lineEndContext="#pop!HighlightingPug">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPug" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Pug" includeAttrib="true"/>
      </context>

      <context name="HighlightingPuppetCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPuppetCodeEnvSParam"/>
      </context>
      <context name="HighlightingPuppetCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPuppetCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPuppetCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPuppet"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPuppetCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPuppet"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPuppet" attribute="Normal Text" lineEndContext="#pop!HighlightingPuppet">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPuppet" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Puppet" includeAttrib="true"/>
      </context>

      <context name="HighlightingPythonCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingPythonCodeEnvSParam"/>
      </context>
      <context name="HighlightingPythonCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingPythonCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingPythonCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginPython"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingPythonCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginPython"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginPython" attribute="Normal Text" lineEndContext="#pop!HighlightingPython">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingPython" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Python"/>
      </context>

      <context name="HighlightingQMLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingQMLCodeEnvSParam"/>
      </context>
      <context name="HighlightingQMLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingQMLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingQMLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginQML"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingQMLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginQML"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginQML" attribute="Normal Text" lineEndContext="#pop!HighlightingQML">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingQML" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##QML" includeAttrib="true"/>
      </context>

      <context name="HighlightingRelaxNG-CompactCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingRelaxNG-CompactCodeEnvSParam"/>
      </context>
      <context name="HighlightingRelaxNG-CompactCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingRelaxNG-CompactCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingRelaxNG-CompactCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginRelaxNG-Compact"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingRelaxNG-CompactCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginRelaxNG-Compact"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginRelaxNG-Compact" attribute="Normal Text" lineEndContext="#pop!HighlightingRelaxNG-Compact">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingRelaxNG-Compact" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##RelaxNG-Compact" includeAttrib="true"/>
      </context>

      <context name="HighlightingRPM SpecCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingRPM SpecCodeEnvSParam"/>
      </context>
      <context name="HighlightingRPM SpecCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingRPM SpecCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingRPM SpecCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginRPM Spec"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingRPM SpecCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginRPM Spec"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginRPM Spec" attribute="Normal Text" lineEndContext="#pop!HighlightingRPM Spec">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingRPM Spec" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##RPM Spec" includeAttrib="true"/>
      </context>

      <context name="HighlightingRacketCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingRacketCodeEnvSParam"/>
      </context>
      <context name="HighlightingRacketCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingRacketCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingRacketCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginRacket"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingRacketCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginRacket"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginRacket" attribute="Normal Text" lineEndContext="#pop!HighlightingRacket">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingRacket" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Racket" includeAttrib="true"/>
      </context>

      <context name="HighlightingREXXCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingREXXCodeEnvSParam"/>
      </context>
      <context name="HighlightingREXXCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingREXXCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingREXXCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginREXX"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingREXXCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginREXX"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginREXX" attribute="Normal Text" lineEndContext="#pop!HighlightingREXX">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingREXX" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##REXX" includeAttrib="true"/>
      </context>

      <context name="HighlightingRuby/Rails/RHTMLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingRuby/Rails/RHTMLCodeEnvSParam"/>
      </context>
      <context name="HighlightingRuby/Rails/RHTMLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingRuby/Rails/RHTMLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingRuby/Rails/RHTMLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginRuby/Rails/RHTML"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingRuby/Rails/RHTMLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginRuby/Rails/RHTML"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginRuby/Rails/RHTML" attribute="Normal Text" lineEndContext="#pop!HighlightingRuby/Rails/RHTML">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingRuby/Rails/RHTML" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Ruby/Rails/RHTML" includeAttrib="true"/>
      </context>

      <context name="HighlightingreStructuredTextCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingreStructuredTextCodeEnvSParam"/>
      </context>
      <context name="HighlightingreStructuredTextCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingreStructuredTextCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingreStructuredTextCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginreStructuredText"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingreStructuredTextCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginreStructuredText"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginreStructuredText" attribute="Normal Text" lineEndContext="#pop!HighlightingreStructuredText">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingreStructuredText" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##reStructuredText" includeAttrib="true"/>
      </context>

      <context name="HighlightingRubyCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingRubyCodeEnvSParam"/>
      </context>
      <context name="HighlightingRubyCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingRubyCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingRubyCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginRuby"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingRubyCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginRuby"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginRuby" attribute="Normal Text" lineEndContext="#pop!HighlightingRuby">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingRuby" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Ruby" includeAttrib="true"/>
      </context>

      <context name="HighlightingRustCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingRustCodeEnvSParam"/>
      </context>
      <context name="HighlightingRustCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingRustCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingRustCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginRust"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingRustCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginRust"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginRust" attribute="Normal Text" lineEndContext="#pop!HighlightingRust">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingRust" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Rust" includeAttrib="true"/>
      </context>

      <context name="HighlightingSMLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSMLCodeEnvSParam"/>
      </context>
      <context name="HighlightingSMLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSMLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSMLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSML"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSMLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSML"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSML" attribute="Normal Text" lineEndContext="#pop!HighlightingSML">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSML" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##SML" includeAttrib="true"/>
      </context>

      <context name="HighlightingSASSCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSASSCodeEnvSParam"/>
      </context>
      <context name="HighlightingSASSCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSASSCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSASSCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSASS"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSASSCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSASS"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSASS" attribute="Normal Text" lineEndContext="#pop!HighlightingSASS">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSASS" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##SASS" includeAttrib="true"/>
      </context>

      <context name="HighlightingScalaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingScalaCodeEnvSParam"/>
      </context>
      <context name="HighlightingScalaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingScalaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingScalaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginScala"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingScalaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginScala"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginScala" attribute="Normal Text" lineEndContext="#pop!HighlightingScala">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingScala" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Scala" includeAttrib="true"/>
      </context>

      <context name="HighlightingSchemeCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSchemeCodeEnvSParam"/>
      </context>
      <context name="HighlightingSchemeCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSchemeCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSchemeCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginScheme"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSchemeCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginScheme"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginScheme" attribute="Normal Text" lineEndContext="#pop!HighlightingScheme">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingScheme" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Scheme" includeAttrib="true"/>
      </context>

      <context name="HighlightingscilabCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingscilabCodeEnvSParam"/>
      </context>
      <context name="HighlightingscilabCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingscilabCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingscilabCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginscilab"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingscilabCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginscilab"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginscilab" attribute="Normal Text" lineEndContext="#pop!Highlightingscilab">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="Highlightingscilab" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##scilab" includeAttrib="true"/>
      </context>

      <context name="HighlightingSCSSCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSCSSCodeEnvSParam"/>
      </context>
      <context name="HighlightingSCSSCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSCSSCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSCSSCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSCSS"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSCSSCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSCSS"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSCSS" attribute="Normal Text" lineEndContext="#pop!HighlightingSCSS">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSCSS" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##SCSS" includeAttrib="true"/>
      </context>

      <context name="HighlightingsedCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingsedCodeEnvSParam"/>
      </context>
      <context name="HighlightingsedCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingsedCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingsedCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginsed"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingsedCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginsed"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginsed" attribute="Normal Text" lineEndContext="#pop!Highlightingsed">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="Highlightingsed" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##sed" includeAttrib="true"/>
      </context>

      <context name="HighlightingSieveCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSieveCodeEnvSParam"/>
      </context>
      <context name="HighlightingSieveCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSieveCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSieveCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSieve"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSieveCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSieve"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSieve" attribute="Normal Text" lineEndContext="#pop!HighlightingSieve">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSieve" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Sieve" includeAttrib="true"/>
      </context>

      <context name="HighlightingSmaliCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSmaliCodeEnvSParam"/>
      </context>
      <context name="HighlightingSmaliCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSmaliCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSmaliCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSmali"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSmaliCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSmali"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSmali" attribute="Normal Text" lineEndContext="#pop!HighlightingSmali">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSmali" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Smali" includeAttrib="true"/>
      </context>

      <context name="HighlightingSolidityCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSolidityCodeEnvSParam"/>
      </context>
      <context name="HighlightingSolidityCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSolidityCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSolidityCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSolidity"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSolidityCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSolidity"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSolidity" attribute="Normal Text" lineEndContext="#pop!HighlightingSolidity">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSolidity" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Solidity" includeAttrib="true"/>
      </context>

      <context name="HighlightingSpiceCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSpiceCodeEnvSParam"/>
      </context>
      <context name="HighlightingSpiceCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSpiceCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSpiceCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSpice"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSpiceCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSpice"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSpice" attribute="Normal Text" lineEndContext="#pop!HighlightingSpice">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSpice" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Spice" includeAttrib="true"/>
      </context>

      <context name="HighlightingSQLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSQLCodeEnvSParam"/>
      </context>
      <context name="HighlightingSQLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSQLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSQLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSQL"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSQLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSQL"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSQL" attribute="Normal Text" lineEndContext="#pop!HighlightingSQL">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSQL" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##SQL" includeAttrib="true"/>
      </context>

      <context name="HighlightingStanCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingStanCodeEnvSParam"/>
      </context>
      <context name="HighlightingStanCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingStanCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingStanCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginStan"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingStanCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginStan"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginStan" attribute="Normal Text" lineEndContext="#pop!HighlightingStan">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingStan" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Stan" includeAttrib="true"/>
      </context>

      <context name="HighlightingStataCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingStataCodeEnvSParam"/>
      </context>
      <context name="HighlightingStataCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingStataCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingStataCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginStata"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingStataCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginStata"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginStata" attribute="Normal Text" lineEndContext="#pop!HighlightingStata">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingStata" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Stata" includeAttrib="true"/>
      </context>

      <context name="HighlightingSwiftCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSwiftCodeEnvSParam"/>
      </context>
      <context name="HighlightingSwiftCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSwiftCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSwiftCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSwift"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSwiftCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSwift"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSwift" attribute="Normal Text" lineEndContext="#pop!HighlightingSwift">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSwift" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Swift" includeAttrib="true"/>
      </context>

      <context name="HighlightingSystemVerilogCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingSystemVerilogCodeEnvSParam"/>
      </context>
      <context name="HighlightingSystemVerilogCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingSystemVerilogCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingSystemVerilogCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginSystemVerilog"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingSystemVerilogCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginSystemVerilog"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginSystemVerilog" attribute="Normal Text" lineEndContext="#pop!HighlightingSystemVerilog">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingSystemVerilog" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##SystemVerilog" includeAttrib="true"/>
      </context>

      <context name="HighlightingTOMLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingTOMLCodeEnvSParam"/>
      </context>
      <context name="HighlightingTOMLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingTOMLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingTOMLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginTOML"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingTOMLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginTOML"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginTOML" attribute="Normal Text" lineEndContext="#pop!HighlightingTOML">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingTOML" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##TOML" includeAttrib="true"/>
      </context>

      <context name="HighlightingTADS 3CodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingTADS 3CodeEnvSParam"/>
      </context>
      <context name="HighlightingTADS 3CodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingTADS 3CodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingTADS 3CodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginTADS 3"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingTADS 3CodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginTADS 3"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginTADS 3" attribute="Normal Text" lineEndContext="#pop!HighlightingTADS 3">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingTADS 3" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##TADS 3" includeAttrib="true"/>
      </context>

      <context name="HighlightingTcl/TkCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingTcl/TkCodeEnvSParam"/>
      </context>
      <context name="HighlightingTcl/TkCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingTcl/TkCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingTcl/TkCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginTcl/Tk"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingTcl/TkCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginTcl/Tk"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginTcl/Tk" attribute="Normal Text" lineEndContext="#pop!HighlightingTcl/Tk">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingTcl/Tk" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Tcl/Tk" includeAttrib="true"/>
      </context>

      <context name="HighlightingTcshCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingTcshCodeEnvSParam"/>
      </context>
      <context name="HighlightingTcshCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingTcshCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingTcshCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginTcsh"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingTcshCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginTcsh"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginTcsh" attribute="Normal Text" lineEndContext="#pop!HighlightingTcsh">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingTcsh" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Tcsh" includeAttrib="true"/>
      </context>

      <context name="HighlightingTerraformCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingTerraformCodeEnvSParam"/>
      </context>
      <context name="HighlightingTerraformCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingTerraformCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingTerraformCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginTerraform"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingTerraformCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginTerraform"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginTerraform" attribute="Normal Text" lineEndContext="#pop!HighlightingTerraform">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingTerraform" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Terraform" includeAttrib="true"/>
      </context>

      <context name="HighlightingLaTeXCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingLaTeXCodeEnvSParam"/>
      </context>
      <context name="HighlightingLaTeXCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingLaTeXCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingLaTeXCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginLaTeX"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingLaTeXCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginLaTeX"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginLaTeX" attribute="Normal Text" lineEndContext="#pop!HighlightingLaTeX">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingLaTeX" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##LaTeX" includeAttrib="true"/>
      </context>

      <context name="HighlightingTodo.txtCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingTodo.txtCodeEnvSParam"/>
      </context>
      <context name="HighlightingTodo.txtCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingTodo.txtCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingTodo.txtCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginTodo.txt"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingTodo.txtCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginTodo.txt"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginTodo.txt" attribute="Normal Text" lineEndContext="#pop!HighlightingTodo.txt">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingTodo.txt" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Todo.txt" includeAttrib="true"/>
      </context>

      <context name="HighlightingTypeScriptCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingTypeScriptCodeEnvSParam"/>
      </context>
      <context name="HighlightingTypeScriptCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingTypeScriptCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingTypeScriptCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginTypeScript"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingTypeScriptCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginTypeScript"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginTypeScript" attribute="Normal Text" lineEndContext="#pop!HighlightingTypeScript">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingTypeScript" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##TypeScript" includeAttrib="true"/>
      </context>

      <context name="HighlightingValaCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingValaCodeEnvSParam"/>
      </context>
      <context name="HighlightingValaCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingValaCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingValaCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginVala"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingValaCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginVala"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginVala" attribute="Normal Text" lineEndContext="#pop!HighlightingVala">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingVala" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Vala" includeAttrib="true"/>
      </context>

      <context name="HighlightingVelocityCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingVelocityCodeEnvSParam"/>
      </context>
      <context name="HighlightingVelocityCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingVelocityCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingVelocityCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginVelocity"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingVelocityCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginVelocity"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginVelocity" attribute="Normal Text" lineEndContext="#pop!HighlightingVelocity">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingVelocity" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Velocity" includeAttrib="true"/>
      </context>

      <context name="HighlightingVerilogCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingVerilogCodeEnvSParam"/>
      </context>
      <context name="HighlightingVerilogCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingVerilogCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingVerilogCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginVerilog"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingVerilogCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginVerilog"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginVerilog" attribute="Normal Text" lineEndContext="#pop!HighlightingVerilog">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingVerilog" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##Verilog" includeAttrib="true"/>
      </context>

      <context name="HighlightingVHDLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingVHDLCodeEnvSParam"/>
      </context>
      <context name="HighlightingVHDLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingVHDLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingVHDLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginVHDL"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingVHDLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginVHDL"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginVHDL" attribute="Normal Text" lineEndContext="#pop!HighlightingVHDL">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingVHDL" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##VHDL" includeAttrib="true"/>
      </context>

      <context name="HighlightingXMLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingXMLCodeEnvSParam"/>
      </context>
      <context name="HighlightingXMLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingXMLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingXMLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginXML"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingXMLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginXML"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginXML" attribute="Normal Text" lineEndContext="#pop!HighlightingXML">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingXML" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##XML" includeAttrib="true"/>
      </context>

      <context name="Highlightingx.org ConfigurationCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!Highlightingx.org ConfigurationCodeEnvSParam"/>
      </context>
      <context name="Highlightingx.org ConfigurationCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="Highlightingx.org ConfigurationCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="Highlightingx.org ConfigurationCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginx.org Configuration"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="Highlightingx.org ConfigurationCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginx.org Configuration"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginx.org Configuration" attribute="Normal Text" lineEndContext="#pop!Highlightingx.org Configuration">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="Highlightingx.org Configuration" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##x.org Configuration" includeAttrib="true"/>
      </context>

      <context name="HighlightingxsltCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingxsltCodeEnvSParam"/>
      </context>
      <context name="HighlightingxsltCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingxsltCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingxsltCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginxslt"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingxsltCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginxslt"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginxslt" attribute="Normal Text" lineEndContext="#pop!Highlightingxslt">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="Highlightingxslt" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##xslt" includeAttrib="true"/>
      </context>

      <context name="HighlightingYAMLCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingYAMLCodeEnvSParam"/>
      </context>
      <context name="HighlightingYAMLCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingYAMLCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingYAMLCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginYAML"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingYAMLCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginYAML"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginYAML" attribute="Normal Text" lineEndContext="#pop!HighlightingYAML">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingYAML" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##YAML" includeAttrib="true"/>
      </context>

      <context name="HighlightingYANGCodeEnvS" attribute="Error" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingYANGCodeEnvSParam"/>
      </context>
      <context name="HighlightingYANGCodeEnvSParam" attribute="Error" lineEndContext="#stay">
        <DetectSpaces attribute="Normal Text"/>
        <DetectChar char="{" attribute="Normal Text" context="HighlightingYANGCodeEnvSParamInside"/>
        <IncludeRules context="FindComments"/>
      </context>
      <context name="HighlightingYANGCodeEnvSParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="}" attribute="Normal Text" context="#pop!HighlightingBeginYANG"/>
        <IncludeRules context="FindComments"/>
        <RegExpr String="\&envname;" attribute="Macro" context="#stay"/>
      </context>
      <context name="HighlightingYANGCodeEnv" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="}" context="HighlightingBeginYANG"/>
        <RegExpr String="[^}]*" attribute="Normal Text" context="#stay"/>
      </context>
      <context name="HighlightingBeginYANG" attribute="Normal Text" lineEndContext="#pop!HighlightingYANG">
        <DetectSpaces/>
        <RegExpr String=".+" attribute="Error" context="#stay"/>
      </context>
      <context name="HighlightingYANG" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="HighlightingCommon"/>
        <IncludeRules context="##YANG" includeAttrib="true"/>
      </context>
      <!-- end of mintedcode environment -->

      <!-- end of verbatim environment -->
      <context name="VerbFindEnd" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="#stay"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop#pop#pop#pop" endRegion="block"/>
        <keyword String="VerbatimEnv" attribute="Environment"/>
      </context>

      <!-- begin comment environment -->
      <context name="CommentEnv" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="BlockComment"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
       </context>

      <!-- parse comment text -->
      <context name="BlockComment" attribute="Comment" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <RegExpr String="\\end(?=\s*\{comment\*?\})" attribute="Structure" context="CommFindEnd"/>
      </context>

      <!-- end of comment environment -->
      <context name="CommFindEnd" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="#stay"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop#pop#pop" endRegion="block"/>
        <keyword String="CommentEnv" attribute="Environment"/>
      </context>

      <!-- environment type 4: math environment with its own mathmode -->
      <context name="MathEnv" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="MathModeEnv"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>

      <!-- environment type 5: math environment with its own mathmode and parameter -->
      <context name="MathEnvWithParam" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="MathEnvWithParamInside"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>
      <context name="MathEnvWithParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <RangeDetect char="[" char1="]" attribute="Normal Text" context="#stay"/>
        <DetectChar char="{" attribute="Normal Text" context="MathEnvParamInside"/>
      </context>
      <context name="MathEnvParamInside" attribute="Normal Text" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop!MathModeEnv"/>
      </context>

      <!-- parse math environment -->
      <context name="MathModeEnv" attribute="Math" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="\" attribute="Math" context="BackslashMathModeEnv" lookAhead="true"/>
        <DetectChar char="$" attribute="Error" context="#stay"/>
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
      </context>
      <context name="BackslashMathModeEnv" attribute="Math" lineEndContext="#pop">
        <keyword String="beginEnv" attribute="Structure" context="#pop!FindBeginEnvironment" beginRegion="block"/>
        <keyword String="endEnv" attribute="Structure" context="#pop!MathFindEnd"/>
        <keyword String="MathModeText" attribute="Macro Mathmode" context="#pop!MathModeText"/>
        <Detect2Chars char="\" char1="(" attribute="Error" context="#pop"/>
        <Detect2Chars char="\" char1=")" attribute="Error" context="#pop"/>
        <Detect2Chars char="\" char1="[" attribute="Error" context="#pop"/>
        <Detect2Chars char="\" char1="]" attribute="Error" context="#pop"/>
        <DetectChar char="\" attribute="Macro Mathmode" context="#pop!MathContrSeq"/>
      </context>

      <!-- end of math environment -->
      <context name="MathFindEnd" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="#stay"/>
        <keyword String="MathEnvParam" attribute="Environment" context="MathFindEndInside"/>
        <keyword String="MathEnv" attribute="Environment" context="MathFindEndInside"/>
        <RegExpr String="&envname;" attribute="Environment" context="NoMathFindEndInside"/>
        <RegExpr String="." attribute="Error" context="#pop"/>
      </context>
      <context name="MathFindEndInside" attribute="Normal Text" lineEndContext="#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop#pop#pop#pop" endRegion="block"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>
      <context name="NoMathFindEndInside" attribute="Normal Text" lineEndContext="#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop" endRegion="block"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>

      <!-- environment type 9: tabular -->
      <context name="TabEnv" attribute="Environment" lineEndContext="#stay" fallthroughContext="#pop#pop#pop">
        <DetectChar char="}" attribute="Normal Text" context="Tab"/>
        <RegExpr String="[^}]*" attribute="Error" context="#stay"/>
      </context>

      <!-- parse tabular text -->
      <context name="Tab" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar char="&amp;" attribute="Ampersand" context="#stay"/>
        <Detect2Chars char="@" char1="{" attribute="Column Separator" context="Column Separator"/>
        <RegExpr String="\\end\b" attribute="Structure" context="TabFindEnd"/> <!-- endEnv -->
        <IncludeRules context="Normal Text" />
      </context>

      <context name="Column Separator" attribute="Column Separator" lineEndContext="#stay">
        <DetectChar char="{" attribute="Column Separator" context="Column Separator"/>
        <DetectChar char="}" attribute="Column Separator" context="#pop"/>
      </context>

      <!-- end of tabular environment -->
      <context name="TabFindEnd" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="#stay"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop#pop#pop" endRegion="block"/>
        <keyword String="TabEnv" attribute="Environment" context="#stay"/>
      </context>

      <!-- math mode: starting with $ -->
      <context name="MathModeTex" attribute="Math" lineEndContext="#stay" fallthroughContext="#pop!MathMode">
        <DetectChar char="$" attribute="Math" context="#pop!MathModeDisplay" beginRegion="mathMode"/>
      </context>
      <context name="MathMode" attribute="Math" lineEndContext="#stay">
        <DetectChar char="$" attribute="Math" context="#pop"/>
        <IncludeRules context="MathModeCommon"/>
      </context>

      <!-- math mode: starting with $$ -->
      <context name="MathModeDisplay" attribute="Math" lineEndContext="#stay">
        <Detect2Chars char="$" char1="$" attribute="Math" context="#pop" endRegion="mathMode"/>
        <DetectChar char="$" attribute="Error" context="#stay"/>
        <IncludeRules context="MathModeCommon"/>
      </context>

      <!-- math mode: starting with \( -->
      <context name="MathModeLatex" attribute="Math" lineEndContext="#stay">
        <Detect2Chars char="\" char1=")" attribute="Math" context="#pop"/>
        <IncludeRules context="MathModeCommon"/>
      </context>

      <!-- math mode: starting with \[ -->
      <context name="MathModeLatexEquation" attribute="Math" lineEndContext="#stay">
        <Detect2Chars char="\" char1="]" attribute="Math" context="#pop" endRegion="mathMode"/>
        <IncludeRules context="MathModeCommon"/>
      </context>

      <!-- math mode: \ensuremath{...} -->
      <context name="MathModeEnsure" attribute="Math" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Math" context="#pop!MathModeEnsureInside"/>
        <RegExpr String="." attribute="Error" context="#pop"/>
      </context>
      <context name="MathModeEnsureInside" attribute="Math" lineEndContext="#stay">
        <DetectChar char="{" attribute="Math" context="MathModeEnsureInside" />
        <DetectChar char="}" attribute="Math" context="#pop" />
        <IncludeRules context="MathModeCommon"/>
      </context>

      <!-- math mode common -->
      <context name="MathModeCommon" attribute="Math" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectIdentifier/>
        <DetectChar char="\" attribute="Math" context="BackslashMathModeCommon" lookAhead="true"/>
        <IncludeRules context="FindComments"/>
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
      </context>
      <context name="BackslashMathModeCommon" attribute="Math" lineEndContext="#pop">
        <keyword String="beginEnv" attribute="Structure" context="#pop!MathEnvironment" beginRegion="block"/>
        <keyword String="endEnv" attribute="Structure" context="#pop!MathEnvironmentEnd"/>
        <keyword String="MathModeText" attribute="Macro Mathmode" context="#pop!MathModeText" />
        <DetectChar char="\" attribute="Macro Mathmode" context="#pop!MathContrSeq"/>
      </context>
      <context name="MathEnvironment" attribute="Math" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="MathEnvironmentInside"/>
        <RegExpr String="." attribute="Error" context="#pop"/>
      </context>
      <context name="MathEnvironmentInside" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop"/>
        <RegExpr String="&envname;" attribute="Environment" context="#stay"/>
        <RegExpr String="[^}a-zA-Z]+|." attribute="Error" context="#stay"/>
      </context>
      <context name="MathEnvironmentEnd" attribute="Math" lineEndContext="#stay">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="MathEnvironmentEndInside"/>
        <RegExpr String="." attribute="Error" context="#pop"/>
      </context>
      <context name="MathEnvironmentEndInside" attribute="Environment" lineEndContext="#stay">
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop" endRegion="block"/>
        <WordDetect String="ensuremath" attribute="Environment" context="#pop!LatexEnvEnd"/>
        <RegExpr String="&envname;" attribute="Environment" context="#stay"/>
        <RegExpr String="[^}a-zA-Z]+|." attribute="Error" context="#pop#pop"/>
      </context>

      <!-- command in mathmode -->
      <context name="MathContrSeq" attribute="Macro Mathmode" lineEndContext="#pop">
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RegExpr String="&envname;|." attribute="Macro Mathmode" context="#pop" />
      </context>

      <!-- text in mathmode -->
      <context name="MathModeText" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="MathContrSeq">
        <DetectSpaces/>
        <DetectChar char="{" attribute="Normal Text" context="MathModeTextParameterStart"/>
      </context>
      <context name="MathModeTextInside" attribute="Normal Text" lineEndContext="#stay" >
        <DetectChar char="{" attribute="Normal Text" context="MathModeTextParameterStart"/>
      </context>

      <context name="MathModeTextParameterStart" attribute="Normal Text" lineEndContext="#stay" >
        <DetectChar char="&bullet;" attribute="Bullet" context="#stay"/>
        <RangeDetect char="$" char1="$" attribute="Math" context="#stay"/>
        <DetectChar char="{" attribute="Normal Text" context="MathModeTextInside" lookAhead="true"/>
        <DetectChar char="}" attribute="Normal Text" context="#pop#pop"/>
        <IncludeRules context="FindComments"/>
        <DetectChar char="\" attribute="Macro Mathmode" context="MathContrSeq"/>
      </context>

      <!-- iffalse aka multiline comment -->
      <context name="Multiline Comment" attribute="Comment" lineEndContext="#stay">
        <DetectChar char="\" attribute="Comment" context="BackslashMultilineComment" lookAhead="true"/>
      </context>
      <context name="BackslashMultilineComment" attribute="Comment" lineEndContext="#pop">
        <keyword String="iffalseend" attribute="Comment" context="#pop#pop"/>
        <DetectChar char="\" attribute="Comment" context="#pop"/>
      </context>

      <!-- comment -->
      <context name="FindComments" attribute="Normal Text" lineEndContext="#stay">
        <RegExpr String="&#037;+\s*BEGIN\b" attribute="Region Marker" context="RegionComment" firstNonSpace="true" beginRegion="region-marker"/>
        <RegExpr String="&#037;+\s*END\b" attribute="Region Marker" context="RegionComment" firstNonSpace="true" endRegion="region-marker"/>
        <DetectChar char="%" attribute="Comment" context="Comment"/>
      </context>
      <context name="RegionComment" attribute="Region Marker" lineEndContext="#pop"/>
      <context name="Comment" attribute="Comment" lineEndContext="#pop">
        <DetectSpaces/>
        <IncludeRules context="##Comments" />
        <DetectIdentifier/>
        <DetectChar char="\" attribute="Comment" context="BackslashComment" lookAhead="true"/>
      </context>
      <context name="BackslashComment" attribute="Comment" lineEndContext="#pop">
        <keyword String="ResetHL" attribute="Comment" context="#pop!Normal Text"/>
        <DetectChar char="\" attribute="Comment" context="#pop"/>
      </context>
    </contexts>

    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Option Text" defStyleNum="dsNormal" spellChecking="false"/>
      <itemData name="Macro" defStyleNum="dsFunction" spellChecking="false"/>
      <itemData name="Comment" defStyleNum="dsComment" spellChecking="false"/>
      <itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
      <itemData name="Math" defStyleNum="dsSpecialString" spellChecking="false"/>
      <!-- begin/end -->
      <itemData name="Structure" defStyleNum="dsKeyword" spellChecking="false"/>
      <itemData name="Builtin Macro" defStyleNum="dsBuiltIn" spellChecking="false"/>
      <itemData name="Macro Mathmode" defStyleNum="dsSpecialChar" spellChecking="false"/>
      <itemData name="Environment" defStyleNum="dsExtension" spellChecking="false"/>
      <itemData name="Reference" defStyleNum="dsExtension" spellChecking="false"/>
      <itemData name="Verbatim" defStyleNum="dsVerbatimString" spellChecking="false"/>
      <itemData name="Verbatim Code" defStyleNum="dsVerbatimString" spellChecking="false"/>
      <itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
      <itemData name="Bullet" defStyleNum="dsInformation" spellChecking="false"/>
      <itemData name="Ampersand" defStyleNum="dsOperator" bold="1" spellChecking="false"/>
      <itemData name="Column Separator" defStyleNum="dsChar" spellChecking="false"/>
      <!-- in section headers -->
      <itemData name="Sectioning Text" defStyleNum="dsNormal" bold="1"/>
      <itemData name="Sectioning Macro" defStyleNum="dsFunction" bold="1" spellChecking="false"/>
      <itemData name="Sectioning Math" defStyleNum="dsSpecialString" bold="1"/>
      <itemData name="Sectioning Macro Mathmode" defStyleNum="dsSpecialChar" bold="1" spellChecking="false"/>
    </itemDatas>
  </highlighting>

  <general>
    <keywords weakDeliminator="\*" additionalDeliminator="$" wordWrapDeliminator=",{}[]"/>
    <comments>
      <comment name="singleLine" start="%" />
    </comments>
  </general>

  <spellchecking>
    <encodings>
      <encoding char="&#192;" string="\`{A}" />
      <encoding char="&#192;" string="\`A" />
      <encoding char="&#193;" string="\'{A}" />
      <encoding char="&#193;" string="\'A" />
      <encoding char="&#194;" string="\^{A}" />
      <encoding char="&#194;" string="\^A" />
      <encoding char="&#195;" string="\~{A}" />
      <encoding char="&#195;" string="\~A" />
      <encoding char="&#196;" string="\&#34;{A}" />
      <encoding char="&#196;" string="\&#34;A" />
      <encoding char="&#197;" string="\AA{}" />
      <encoding char="&#198;" string="\AE{}" />
      <encoding char="&#199;" string="\c{C}" />
      <encoding char="&#200;" string="\`{E}" />
      <encoding char="&#200;" string="\`E" />
      <encoding char="&#201;" string="\'{E}" />
      <encoding char="&#201;" string="\'E" />
      <encoding char="&#202;" string="\^{E}" />
      <encoding char="&#202;" string="\^E" />
      <encoding char="&#203;" string="\&#34;{E}" />
      <encoding char="&#203;" string="\&#34;E" />
      <encoding char="&#204;" string="\`{I}" />
      <encoding char="&#204;" string="\`I" />
      <encoding char="&#205;" string="\'{I}" />
      <encoding char="&#205;" string="\'I" />
      <encoding char="&#206;" string="\^{I}" />
      <encoding char="&#206;" string="\^I" />
      <encoding char="&#207;" string="\&#34;{I}" />
      <encoding char="&#207;" string="\&#34;I" />
      <encoding char="&#208;" string="\DH{}" />
      <encoding char="&#209;" string="\~{N}" />
      <encoding char="&#209;" string="\~N" />
      <encoding char="&#210;" string="\`{O}" />
      <encoding char="&#210;" string="\`O" />
      <encoding char="&#211;" string="\'{O}" />
      <encoding char="&#211;" string="\'O" />
      <encoding char="&#212;" string="\^{O}" />
      <encoding char="&#212;" string="\^O" />
      <encoding char="&#213;" string="\~{O}" />
      <encoding char="&#213;" string="\~O" />
      <encoding char="&#214;" string="\&#34;{O}" />
      <encoding char="&#214;" string="\&#34;O" />
      <encoding char="&#216;" string="\O{}" />
      <encoding char="&#217;" string="\`{U}" />
      <encoding char="&#217;" string="\`U" />
      <encoding char="&#218;" string="\'{U}" />
      <encoding char="&#218;" string="\'U" />
      <encoding char="&#219;" string="\^{U}" />
      <encoding char="&#219;" string="\^U" />
      <encoding char="&#220;" string="\&#34;{U}" />
      <encoding char="&#220;" string="\&#34;U" />
      <encoding char="&#221;" string="\'{Y}" />
      <encoding char="&#221;" string="\'Y" />
      <encoding char="&#222;" string="\TH{}" />
      <encoding char="&#223;" string="\ss{}" />
      <encoding char="&#224;" string="\`{a}" />
      <encoding char="&#224;" string="\`a" />
      <encoding char="&#225;" string="\'{a}" />
      <encoding char="&#225;" string="\'a" />
      <encoding char="&#226;" string="\^{a}" />
      <encoding char="&#226;" string="\^a" />
      <encoding char="&#227;" string="\~{a}" />
      <encoding char="&#227;" string="\~a" />
      <encoding char="&#228;" string="\&#34;{a}" />
      <encoding char="&#228;" string="\&#34;a" />
      <encoding char="&#229;" string="\aa{}" />
      <encoding char="&#230;" string="\ae{}" />
      <encoding char="&#231;" string="\c{c}" />
      <encoding char="&#232;" string="\`{e}" />
      <encoding char="&#232;" string="\`e" />
      <encoding char="&#233;" string="\'{e}" />
      <encoding char="&#233;" string="\'e" />
      <encoding char="&#234;" string="\^{e}" />
      <encoding char="&#234;" string="\^e" />
      <encoding char="&#235;" string="\&#34;{e}" />
      <encoding char="&#235;" string="\&#34;e" />
      <encoding char="&#236;" string="\`{i}" />
      <encoding char="&#236;" string="\`i" />
      <encoding char="&#237;" string="\'{i}" />
      <encoding char="&#237;" string="\'i" />
      <encoding char="&#238;" string="\^{i}" />
      <encoding char="&#238;" string="\^i" />
      <encoding char="&#239;" string="\&#34;{i}" />
      <encoding char="&#239;" string="\&#34;i" />
      <encoding char="&#240;" string="\dh{}" />
      <encoding char="&#241;" string="\~{n}" />
      <encoding char="&#241;" string="\~n" />
      <encoding char="&#242;" string="\`{o}" />
      <encoding char="&#242;" string="\`o" />
      <encoding char="&#243;" string="\'{o}" />
      <encoding char="&#243;" string="\'o" />
      <encoding char="&#244;" string="\^{o}" />
      <encoding char="&#244;" string="\^o" />
      <encoding char="&#245;" string="\~{o}" />
      <encoding char="&#245;" string="\~o" />
      <encoding char="&#246;" string="\&#34;{o}" />
      <encoding char="&#246;" string="\&#34;o" />
      <encoding char="&#248;" string="\o{}" />
      <encoding char="&#249;" string="\`{u}" />
      <encoding char="&#249;" string="\`u" />
      <encoding char="&#250;" string="\'{u}" />
      <encoding char="&#250;" string="\'u" />
      <encoding char="&#251;" string="\^{u}" />
      <encoding char="&#251;" string="\^u" />
      <encoding char="&#252;" string="\&#34;{u}" />
      <encoding char="&#252;" string="\&#34;u" />
      <encoding char="&#253;" string="\'{y}" />
      <encoding char="&#253;" string="\'y" />
      <encoding char="&#254;" string="\th{}" />
      <encoding char="&#255;" string="\&#34;{y}" />
      <encoding char="&#255;" string="\&#34;y" />
      <encoding string="''" ignored="true" />
      <encoding string="\-" ignored="true" />
    </encodings>
  </spellchecking>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
