<language name="Jinja/reStructuredText" extensions="*.rst.jinja;*.rst.jinja2;*.rst.j2" section="Other" mimetype="text/x-rst.jinja" version="1769676925" kateversion="5.62" casesensitive="1" license="MIT" priority="0" generated="true">

  <!--Generated by generate_jinja.py, the Jinja infusion script for KDE Syntax Highlighting-->

  <highlighting>

    <contexts>
      <context name="Normal" attribute="Normal" lineEndContext="#stay">
        <IncludeRules context="jinja_boot##Jinja" />
        <RegExpr attribute="Bold" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*\*[^\s].*\*\*(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <RegExpr attribute="Italic" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*[^\s].*\*(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <IncludeRules context="InlineMarkup" />
        <RegExpr attribute="Footnote" context="#stay" String="^\s*\.\. \[(\d+|#|\*|#[\w_\.:\+\-]+)\]\s" minimal="true" column="0" />
        <RegExpr attribute="Citation" context="#stay" String="^\s*\.\. \[[\w_\.:\+\-]+\]\s" minimal="true" column="0" />
        <RegExpr attribute="HyperlinkTarget" context="#stay" String="^\s*(\.\. (__:|_[\w_\.:\+\- ]+:(\s|$))|__ )" minimal="true" column="0" />
        <StringDetect attribute="Code" String=".. code-block::" context="CodeBlock" firstNonSpace="true" />
        <StringDetect attribute="Code" String=".. code::" context="CodeBlock" firstNonSpace="true" />
        <RegExpr attribute="Directive" context="#stay" String="^\s*\.\. ([\w\-_\.]+)(:[\w\-_\.]+)*::(\s|$)" minimal="true" column="0" />
        <RegExpr attribute="Code" String="::$" context="CodeBlock" />
        <RegExpr attribute="SubstitutionDefinition" context="#stay" String="^\s*\.\. \|[\w_\.:\+\- ]+\|\s+[\w_\.:\+\-]+::\s" minimal="true" column="0" />
        <RegExpr attribute="Field" String=":(?=([^:]*\\:)*[^:]*:(\s|$))" context="Field" firstNonSpace="true" />
        <RegExpr attribute="Comment" context="Comment" String="^(\s*)\.\.(?:\s|$)(?![\w\-_\.]+(?::[\w\-_\.]+)*::(?:\s|$))" column="0" />

        
        <RegExpr attribute="StandaloneHyperlink" context="#stay" String="\b(?:https?|ftp)\://[^&quot;&gt;\s`\)]*[^\s!&quot;'`\(\)\*,\.:;&lt;&gt;\?~\]\}\\](?=[[:punct:]]*(?:[\s\)]|$))" />

      </context>

      <context name="InlineMarkup" attribute="Normal" lineEndContext="#stay">
        <IncludeRules context="jinja_boot##Jinja" />
        <RegExpr attribute="InlineLiteral" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))``[^\s].*``(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <RegExpr attribute="SubstitutionReference" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\|[^\s].*\|(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <RegExpr attribute="InlineInternalTarget" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))_`[^\s].*`(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <RegExpr attribute="FootnoteReference" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\[[\w_\.:\+\-]+\]_(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <RegExpr attribute="HyperlinkReference" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))(`[^\s].*`|\w+)_{1,2}(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <RegExpr attribute="InterpretedText" context="TrailingRole" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))`[^\s].*`(?=:([\w\-_\.\+]+)(:[\w\-_\.\+]+)*:)" minimal="true" />
        <RegExpr attribute="Role" String=":([\w\-_\.\+]+)(:[\w\-_\.\+]+)*:(?=`)" context="Role" />
        <RegExpr attribute="DefaultRole" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))`[^\s].*`(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
      </context>

      <context name="Field" attribute="Field" lineEndContext="#stay">
        <IncludeRules context="jinja_boot##Jinja" />
        <DetectChar attribute="Field" context="#pop" char=":" />
        <Detect2Chars attribute="Field" context="#stay" char="\" char1=":" />
        <RegExpr attribute="FieldBold" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*\*[^\s].*\*\*(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <RegExpr attribute="FieldItalic" context="#stay" String="(?:^|(?&lt;=[-\s'&quot;\(\[{&lt;/:‘“’«¡¿‐‑‒–— ]))\*[^\s].*\*(?=[-\s’”»‐‑‒–— '&quot;\)\]}&gt;/:\.,;!\?\\]|$)" minimal="true" />
        <IncludeRules context="InlineMarkup" />
      </context>
      <context name="InterpretedText" attribute="InterpretedText" lineEndContext="#pop">
        <IncludeRules context="jinja_boot##Jinja" />
        <DetectChar attribute="InterpretedText" char="`" context="#pop" />
      </context>
      <context name="Role" attribute="Role" lineEndContext="#pop">
        <IncludeRules context="jinja_boot##Jinja" />
        <DetectChar attribute="InterpretedText" char="`" context="#pop!InterpretedText" />
      </context>
      <context name="TrailingRole" attribute="Role" lineEndContext="#pop">
        <IncludeRules context="jinja_boot##Jinja" />
        <RegExpr attribute="Role" String=":[\w\-_\.\+]+:" context="#pop" />
      </context>
      <context name="Comment" attribute="Comment" lineEndContext="#stay" dynamic="true">
        <IncludeRules context="jinja_boot##Jinja" />
        <StringDetect attribute="Code" String="%1   " context="#stay" column="0" dynamic="true" />
        <RegExpr attribute="Normal" String="^." lookAhead="true" column="0" context="#pop" />
        <IncludeRules context="##Jinja/Comments" />
      </context>

      <context name="CodeBlock" attribute="Code" lineEndContext="#stay">
        <IncludeRules context="jinja_boot##Jinja" />
        <RegExpr attribute="Code" String="^(\s+)(?=\S)" context="Code" column="0" />
      </context>

      <context name="Code" attribute="Code" lineEndContext="#stay" dynamic="true">
        <IncludeRules context="jinja_boot##Jinja" />
        <StringDetect attribute="Code" String="%1" context="#stay" column="0" dynamic="true" />
        <RegExpr attribute="Normal" String="^." lookAhead="true" context="#pop#pop" column="0" />
      </context>
    </contexts>

    <itemDatas>
      <itemData name="Normal" defStyleNum="dsNormal" />
      <itemData name="Bold" defStyleNum="dsNormal" bold="1" />
      <itemData name="Italic" defStyleNum="dsNormal" italic="1" />
      <itemData name="InlineLiteral" defStyleNum="dsDataType" />
      <itemData name="SubstitutionReference" defStyleNum="dsFunction" />
      <itemData name="InlineInternalTarget" defStyleNum="dsFunction" />
      <itemData name="FootnoteReference" defStyleNum="dsOthers" />
      <itemData name="InterpretedText" defStyleNum="dsDecVal" />
      <itemData name="HyperlinkReference" defStyleNum="dsOthers" />
      <itemData name="Field" defStyleNum="dsFunction" />
      <itemData name="FieldBold" defStyleNum="dsFunction" bold="1" />
      <itemData name="FieldItalic" defStyleNum="dsFunction" italic="1" />
      <itemData name="Footnote" defStyleNum="dsDataType" />
      <itemData name="Citation" defStyleNum="dsDataType" />
      <itemData name="HyperlinkTarget" defStyleNum="dsDataType" />
      <itemData name="Directive" defStyleNum="dsDataType" />
      <itemData name="SubstitutionDefinition" defStyleNum="dsDataType" />
      <itemData name="Role" defStyleNum="dsKeyword" />
      <itemData name="DefaultRole" defStyleNum="dsDecVal" />
      <itemData name="Code" defStyleNum="dsDataType" />
      <itemData name="Comment" defStyleNum="dsComment" />
      <itemData name="StandaloneHyperlink" defStyleNum="dsOthers" />
    </itemDatas>

  </highlighting>

  <general>
    <folding indentationsensitive="true" />
    <comments>
      <comment name="singleLine" start=".." />
    </comments>
  </general>

</language>