Commit 0a85e940 authored by Christoph Cullmann's avatar Christoph Cullmann

sync latest syntax enhancements

parent 7e398f51
......@@ -132,7 +132,7 @@ date: 2019-08-24T12:12:12+00:00
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/asp.xml">ASP</a></td>
<td><a target=_blank href="/syntax/data/html/highlight.asp.html">Light Theme</a></td><td><a target=_blank href="/syntax/data/html/highlight.asp.dark.html">Dark Theme</a></td></tr>
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/apparmor.xml">AppArmor Security Profile</a></td>
<td><a target=_blank href="/syntax/data/html/usr.bin.apparmor-profile-test.html">Light Theme</a></td><td><a target=_blank href="/syntax/data/html/usr.bin.apparmor-profile-test.dark.html">Dark Theme</a></td></tr>
<td><a target=_blank href="/syntax/data/html/test.apparmor.html">Light Theme</a></td><td><a target=_blank href="/syntax/data/html/test.apparmor.dark.html">Dark Theme</a></td></tr>
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/asciidoc.xml">AsciiDoc</a></td>
<td><a target=_blank href="/syntax/data/html/asciidoc.adoc.html">Light Theme</a></td><td><a target=_blank href="/syntax/data/html/asciidoc.adoc.dark.html">Dark Theme</a></td></tr>
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/bibtex.xml">BibTeX</a></td>
......
......@@ -187,4 +187,9 @@ f<span style="color:#da4453;">[=[s]=]</span>
<span style="font-weight:bold;">local</span> <span style="color:#5555ff;">a</span> <span style="color:#2980b9;">&lt;close&gt;</span> <span style="color:#7a7c7d;">--[[</span>
<span style="color:#7a7c7d;">b &lt;const&gt;]]</span>, <span style="color:#5555ff;">b</span> <span style="color:#2980b9;">&lt;const&gt;</span> <span style="color:#7a7c7d;">--[[ xyz ]]</span> , <span style="color:#5555ff;">c</span> <span style="color:#2980b9;">&lt;close&gt;</span>
<span style="color:#5555ff;">b</span>&lt; <span style="color:#5555ff;">cons</span> &gt;
<span style="color:#7a7c7d;">--- </span><span style="color:#3f8058;font-weight:bold;">\code</span>
<span style="color:#7a7c7d;">--!</span><span style="color:#7a7c7d;"> a = 3</span>
<span style="color:#7a7c7d;">--!</span><span style="color:#7a7c7d;"> </span><span style="color:#3f8058;font-weight:bold;">\endcode</span>
<span style="color:#5555ff;">a</span> = <span style="color:#f67400;">3</span>
</pre></body></html>
......@@ -187,4 +187,9 @@ f<span style="color:#bf0303;">[=[s]=]</span>
<span style="font-weight:bold;">local</span> <span style="color:#5555ff;">a</span> <span style="color:#0057ae;">&lt;close&gt;</span> <span style="color:#898887;">--[[</span>
<span style="color:#898887;">b &lt;const&gt;]]</span>, <span style="color:#5555ff;">b</span> <span style="color:#0057ae;">&lt;const&gt;</span> <span style="color:#898887;">--[[ xyz ]]</span> , <span style="color:#5555ff;">c</span> <span style="color:#0057ae;">&lt;close&gt;</span>
<span style="color:#5555ff;">b</span>&lt; <span style="color:#5555ff;">cons</span> &gt;
<span style="color:#898887;">--- </span><span style="color:#ca60ca;font-weight:bold;">\code</span>
<span style="color:#898887;">--!</span><span style="color:#898887;"> a = 3</span>
<span style="color:#898887;">--!</span><span style="color:#898887;"> </span><span style="color:#ca60ca;font-weight:bold;">\endcode</span>
<span style="color:#5555ff;">a</span> = <span style="color:#b08000;">3</span>
</pre></body></html>
......@@ -18,21 +18,21 @@
<span style="color:#7a7c7d;">#comments and not comments</span>
<span style="color:#7a7c7d;"># is comments</span>
;<span style="color:#7a7c7d;">#is comments</span>
<span style="color:#7a7c7d;"> # is comments</span>
<span style="color:#7a7c7d;"># is comments</span>
<span style="color:#7a7c7d;"># &lt;h1&gt; is html comment &lt;/h1&gt;</span>
<span style="font-weight:bold;">puts</span> ok;<span style="color:#7a7c7d;"> # is comments</span>
<span style="font-weight:bold;">puts</span> ok; <span style="color:#7a7c7d;"># is comments</span>
<span style="font-weight:bold;">set</span> String <span style="font-weight:bold;">[string</span> <span style="color:#27ae60;">map</span> <span style="font-weight:bold;">{</span>&lt;/a&gt; <span style="font-weight:bold;">{</span>&lt;span&gt;&amp;#187;<span style="color:#27ae60;">is</span> not comments&lt;/span&gt;&lt;/a&gt;<span style="font-weight:bold;">}}</span> <span style="color:#2980b9;">$String</span><span style="font-weight:bold;">]</span>
<span style="font-weight:bold;">set</span> String <span style="color:#3daee9;">\#</span>not_a_comment
<span style="color:#7a7c7d;"># blocks</span>
<span style="font-weight:bold;">proc</span> test <span style="font-weight:bold;">{</span>arg1 <span style="font-weight:bold;">{</span>arg2 <span style="font-weight:bold;">{}}</span> <span style="font-weight:bold;">{</span>arg3 <span style="font-weight:bold;">{</span>fr fq r<span style="font-weight:bold;">}}}</span> <span style="font-weight:bold;">{</span>
<span style="font-weight:bold;">if</span> <span style="font-weight:bold;">{</span><span style="color:#f67400;">1</span><span style="font-weight:bold;">}</span> <span style="font-weight:bold;">{</span>;<span style="color:#7a7c7d;"> #comments</span>
<span style="font-weight:bold;">set</span> String <span style="color:#3daee9;">\{</span>;<span style="color:#7a7c7d;"> # not a block start</span>
<span style="font-weight:bold;">if</span> <span style="font-weight:bold;">{</span><span style="color:#f67400;">1</span><span style="font-weight:bold;">}</span> <span style="font-weight:bold;">{</span>; <span style="color:#7a7c7d;">#comments</span>
<span style="font-weight:bold;">set</span> String <span style="color:#3daee9;">\{</span>; <span style="color:#7a7c7d;"># not a block start</span>
<span style="font-weight:bold;">}</span>
<span style="font-weight:bold;">}</span>
<span style="font-weight:bold;">proc</span> test <span style="color:#27ae60;">args</span> <span style="font-weight:bold;">{</span>
<span style="font-weight:bold;">set</span> String <span style="color:#3daee9;">\}</span>;<span style="color:#7a7c7d;"> # not a block end</span>
<span style="font-weight:bold;">set</span> String <span style="color:#3daee9;">\}</span>; <span style="color:#7a7c7d;"># not a block end</span>
<span style="font-weight:bold;">}</span>
<span style="color:#2980b9;background-color:#153042;"># BEGIN - collapsable comments</span>
......
......@@ -18,21 +18,21 @@
<span style="color:#898887;">#comments and not comments</span>
<span style="color:#898887;"># is comments</span>
;<span style="color:#898887;">#is comments</span>
<span style="color:#898887;"> # is comments</span>
<span style="color:#898887;"># is comments</span>
<span style="color:#898887;"># &lt;h1&gt; is html comment &lt;/h1&gt;</span>
<span style="font-weight:bold;">puts</span> ok;<span style="color:#898887;"> # is comments</span>
<span style="font-weight:bold;">puts</span> ok; <span style="color:#898887;"># is comments</span>
<span style="font-weight:bold;">set</span> String <span style="font-weight:bold;">[string</span> <span style="color:#006e28;">map</span> <span style="font-weight:bold;">{</span>&lt;/a&gt; <span style="font-weight:bold;">{</span>&lt;span&gt;&amp;#187;<span style="color:#006e28;">is</span> not comments&lt;/span&gt;&lt;/a&gt;<span style="font-weight:bold;">}}</span> <span style="color:#0057ae;">$String</span><span style="font-weight:bold;">]</span>
<span style="font-weight:bold;">set</span> String <span style="color:#924c9d;">\#</span>not_a_comment
<span style="color:#898887;"># blocks</span>
<span style="font-weight:bold;">proc</span> test <span style="font-weight:bold;">{</span>arg1 <span style="font-weight:bold;">{</span>arg2 <span style="font-weight:bold;">{}}</span> <span style="font-weight:bold;">{</span>arg3 <span style="font-weight:bold;">{</span>fr fq r<span style="font-weight:bold;">}}}</span> <span style="font-weight:bold;">{</span>
<span style="font-weight:bold;">if</span> <span style="font-weight:bold;">{</span><span style="color:#b08000;">1</span><span style="font-weight:bold;">}</span> <span style="font-weight:bold;">{</span>;<span style="color:#898887;"> #comments</span>
<span style="font-weight:bold;">set</span> String <span style="color:#924c9d;">\{</span>;<span style="color:#898887;"> # not a block start</span>
<span style="font-weight:bold;">if</span> <span style="font-weight:bold;">{</span><span style="color:#b08000;">1</span><span style="font-weight:bold;">}</span> <span style="font-weight:bold;">{</span>; <span style="color:#898887;">#comments</span>
<span style="font-weight:bold;">set</span> String <span style="color:#924c9d;">\{</span>; <span style="color:#898887;"># not a block start</span>
<span style="font-weight:bold;">}</span>
<span style="font-weight:bold;">}</span>
<span style="font-weight:bold;">proc</span> test <span style="color:#006e28;">args</span> <span style="font-weight:bold;">{</span>
<span style="font-weight:bold;">set</span> String <span style="color:#924c9d;">\}</span>;<span style="color:#898887;"> # not a block end</span>
<span style="font-weight:bold;">set</span> String <span style="color:#924c9d;">\}</span>; <span style="color:#898887;"># not a block end</span>
<span style="font-weight:bold;">}</span>
<span style="color:#0057ae;background-color:#e0e9f8;"># BEGIN - collapsable comments</span>
......
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>usr.bin.apparmor-profile-test</title>
<title>test.apparmor</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (AppArmor Security Profile) - Theme (Breeze Light)"/>
</head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
<span style="color:#898887;"># Sample AppArmor Profile.</span>
<span style="color:#898887;"># License: Public Domain</span>
<span style="color:#898887;"># </span><span style="color:#ca60ca;">kate:</span><span style="color:#898887;"> </span><span style="color:#0095ff;">syntax</span><span style="color:#bf0303;"> AppArmor Security Profile</span><span style="color:#0095ff;">;</span><span style="color:#898887;"> </span><span style="color:#0095ff;">replace-tabs</span><span style="color:#898887;"> </span><span style="color:#006e28;">off</span><span style="color:#0095ff;">;</span>
<span style="color:#898887;"># </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">NOTE</span><span style="color:#898887;">: This profile is not fully functional, since</span>
<span style="color:#898887;"># it is designed to test the syntax highlighting.</span>
<span style="color:#898887;">#</span>
<span style="color:#898887;"># Sample AppArmor Profile.</span>
<span style="color:#898887;"># License: Public Domain</span>
<span style="color:#898887;">#</span>
<span style="color:#898887;"># </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">NOTE</span><span style="color:#898887;">: This profile is not fully functional, since</span>
<span style="color:#898887;"># it is designed to test the syntax highlighting</span>
<span style="color:#898887;"># for the KDE's KSyntaxHighlighting framework.</span>
<span style="color:#898887;">#</span>
<span style="color:#006e28;">include </span><span style="color:#ff5500;">&lt;tunables/global&gt;</span>
......@@ -23,8 +28,14 @@ deny owner <span style="color:#bf0303;text-decoration:underline;">#</span>No-com
<span style="color:#898887;"># Alias</span>
<span style="color:#0057ae;font-weight:bold;">alias</span> /usr/ <span style="color:#bf0303;font-weight:bold;">-&gt;</span> /mnt/usr/,
<span style="color:#898887;"># ABI feature</span>
<span style="color:#0057ae;font-weight:bold;">abi</span> <span style="color:#ff5500;">&lt;abi/3.0&gt;</span>,
<span style="color:#0057ae;font-weight:bold;">abi</span> <span style="color:#ff5500;">&lt;&quot;includes/abi/4.19&quot;&gt;</span>,
<span style="color:#0057ae;font-weight:bold;">abi</span> <span style="color:#ff5500;">&quot;simple_tests/includes/abi/4.19&quot;</span>,
<span style="color:#0057ae;font-weight:bold;">abi</span> <span style="color:#ff5500;">simple_tests/includes/abi/4.19</span>,
<span style="color:#898887;"># Profile for /usr/bin/foo</span>
<span style="color:#644a9b;font-weight:bold;">profile</span> <span style="color:#644a9b;">foo</span> /usr/bin/foo <span style="color:#006e28;">flags</span>=(<span style="color:#bf0303;">attach_disconnected</span> <span style="color:#bf0303;">enforce</span>) {
<span style="color:#644a9b;font-weight:bold;">profile</span> <span style="color:#644a9b;">foo</span> /usr/bin/foo <span style="color:#006e28;">flags</span>=(<span style="color:#bf0303;">attach_disconnected</span> <span style="color:#bf0303;">enforce</span>) <span style="color:#006e28;">xattrs</span>=(<span style="color:#0057ae;">myvalue</span>=foo <span style="color:#0057ae;">user.bar</span>=<span style="color:#3daee9;">*</span> <span style="color:#0057ae;">user.foo</span>=<span style="color:#bf0303;">&quot;bar&quot;</span> ) {
<span style="color:#006e28;">#include </span><span style="color:#ff5500;">&lt;abstractions/ubuntu-helpers&gt;</span>
<span style="color:#006e28;">#include</span><span style="color:#ff5500;">&lt;abstractions/wayland&gt;</span>
<span style="color:#006e28;">#include</span><span style="color:#ff5500;">&quot;/etc/apparmor.d/abstractions/ubuntu-konsole&quot;</span>
......@@ -64,6 +75,7 @@ deny owner <span style="color:#bf0303;text-decoration:underline;">#</span>No-com
/usr/bin/khelpcenter<span style="font-weight:bold;"> Cx</span> <span style="color:#bf0303;font-weight:bold;">-&gt;</span> <span style="color:#644a9b;font-style:italic;">sanitized_helper</span>,
/usr/bin/helloworld <span style="font-weight:bold;"> cxr</span> <span style="color:#bf0303;font-weight:bold;">-&gt;</span>
<span style="color:#644a9b;font-style:italic;">hello_world</span>,
/bin/<span style="color:#3daee9;">**</span><span style="font-weight:bold;"> px</span> <span style="color:#bf0303;font-weight:bold;">-&gt;</span> <span style="color:#644a9b;font-style:italic;">profile</span>,
<span style="color:#898887;"># Dbus rules</span>
<span style="color:#0057ae;font-weight:bold;">dbus</span> (<span style="font-weight:bold;">send</span>) <span style="color:#bf0303;text-decoration:underline;">#</span>No-Comment
......@@ -115,7 +127,7 @@ deny owner <span style="color:#bf0303;text-decoration:underline;">#</span>No-com
<span style="color:#898887;"># Mount rules</span>
<span style="color:#0057ae;font-weight:bold;">mount</span> <span style="color:#006e28;">options</span>=(<span style="font-weight:bold;">rw</span> <span style="font-weight:bold;">bind</span> <span style="font-weight:bold;">remount</span> <span style="font-weight:bold;">nodev</span> <span style="font-weight:bold;">noexec</span>) <span style="color:#006e28;">vfstype</span>=<span style="color:#bf0303;">ecryptfs</span> /home/<span style="color:#3daee9;">*</span>/.helloworld/ <span style="color:#bf0303;font-weight:bold;">-&gt;</span> /home/<span style="color:#3daee9;">*</span>/helloworld/,
<span style="color:#0057ae;font-weight:bold;">mount</span> <span style="color:#006e28;">options</span> <span style="color:#bf0303;font-weight:bold;">in</span> (<span style="font-weight:bold;">rw</span>, <span style="font-weight:bold;">bind</span>) / <span style="color:#bf0303;font-weight:bold;">-&gt;</span> /run/hellowordd/<span style="color:#3daee9;">*</span>.mnt,
<span style="color:#0057ae;font-weight:bold;">mount</span> <span style="color:#006e28;">option</span>=<span style="font-weight:bold;">read-only</span> <span style="color:#006e28;">fstype</span>=<span style="color:#bf0303;">btrfs</span> /dev/sd<span style="color:#bf0303;">[a-z][1-9]</span><span style="color:#3daee9;">*</span> <span style="color:#bf0303;font-weight:bold;">-&gt;</span> /media/<span style="color:#3daee9;">*</span>/<span style="color:#3daee9;">*</span>,
<span style="color:#0057ae;font-weight:bold;">mount</span> <span style="color:#006e28;">options</span>=<span style="font-weight:bold;">read-only</span> <span style="color:#006e28;">fstype</span>=<span style="color:#bf0303;">btrfs</span> /dev/sd<span style="color:#bf0303;">[a-z][1-9]</span><span style="color:#3daee9;">*</span> <span style="color:#bf0303;font-weight:bold;">-&gt;</span> /media/<span style="color:#3daee9;">*</span>/<span style="color:#3daee9;">*</span>,
<span style="color:#0057ae;font-weight:bold;">umount</span> /home/<span style="color:#3daee9;">*</span>/helloworld/,
<span style="color:#898887;"># Pivot Root rules</span>
......
......@@ -60,4 +60,13 @@ normal
<span style="color:#27aeae;font-weight:bold;">{b}</span><span style="font-weight:bold;"> bold </span><span style="color:#27aeae;font-weight:bold;text-decoration:underline;">{u}</span><span style="font-weight:bold;text-decoration:underline;"> bold-underline </span><span style="color:#27aeae;font-weight:bold;text-decoration:underline;">{/b}</span><span style="text-decoration:underline;"> underline </span><span style="color:#27aeae;text-decoration:underline;">{/u}</span> normal
<span style="color:#27aeae;font-style:italic;">{i}</span><span style="font-style:italic;"> italic </span><span style="color:#27aeae;font-style:italic;text-decoration:underline;">{u}</span><span style="font-style:italic;text-decoration:underline;"> italic-underline </span><span style="color:#27aeae;font-style:italic;text-decoration:underline;">{/u}</span><span style="font-style:italic;"> italic </span><span style="color:#27aeae;font-style:italic;">{/i}</span> normal
<span style="color:#27aeae;font-style:italic;">{i}</span><span style="font-style:italic;"> italic </span><span style="color:#27aeae;font-style:italic;text-decoration:underline;">{u}</span><span style="font-style:italic;text-decoration:underline;"> italic-underline </span><span style="color:#27aeae;font-style:italic;text-decoration:underline;">{/i}</span><span style="text-decoration:underline;"> underline </span><span style="color:#27aeae;text-decoration:underline;">{/u}</span> normal
<span style="color:#27ae60;font-weight:bold;">7</span>
<span style="color:#da4453;text-decoration:underline;">00:14:22,234 --&gt; 00:16:03,231w#@</span>
<span style="color:#da4453;">Subtitle with</span>
<span style="color:#da4453;">error (in time).</span>
<span style="color:#27ae60;font-weight:bold;">8</span>
<span style="color:#7a7c7d;">00:20:01,123 </span><span style="color:#7a7c7d;font-weight:bold;">--&gt;</span><span style="color:#7a7c7d;"> 00:21:21,221</span>
Good bye
</pre></body></html>
......@@ -60,4 +60,13 @@ normal
<span style="color:#0057ae;font-weight:bold;">{b}</span><span style="font-weight:bold;"> bold </span><span style="color:#0057ae;font-weight:bold;text-decoration:underline;">{u}</span><span style="font-weight:bold;text-decoration:underline;"> bold-underline </span><span style="color:#0057ae;font-weight:bold;text-decoration:underline;">{/b}</span><span style="text-decoration:underline;"> underline </span><span style="color:#0057ae;text-decoration:underline;">{/u}</span> normal
<span style="color:#0057ae;font-style:italic;">{i}</span><span style="font-style:italic;"> italic </span><span style="color:#0057ae;font-style:italic;text-decoration:underline;">{u}</span><span style="font-style:italic;text-decoration:underline;"> italic-underline </span><span style="color:#0057ae;font-style:italic;text-decoration:underline;">{/u}</span><span style="font-style:italic;"> italic </span><span style="color:#0057ae;font-style:italic;">{/i}</span> normal
<span style="color:#0057ae;font-style:italic;">{i}</span><span style="font-style:italic;"> italic </span><span style="color:#0057ae;font-style:italic;text-decoration:underline;">{u}</span><span style="font-style:italic;text-decoration:underline;"> italic-underline </span><span style="color:#0057ae;font-style:italic;text-decoration:underline;">{/i}</span><span style="text-decoration:underline;"> underline </span><span style="color:#0057ae;text-decoration:underline;">{/u}</span> normal
<span style="color:#006e28;font-weight:bold;">7</span>
<span style="color:#bf0303;text-decoration:underline;">00:14:22,234 --&gt; 00:16:03,231w#@</span>
<span style="color:#bf0303;">Subtitle with</span>
<span style="color:#bf0303;">error (in time).</span>
<span style="color:#006e28;font-weight:bold;">8</span>
<span style="color:#898887;">00:20:01,123 </span><span style="color:#898887;font-weight:bold;">--&gt;</span><span style="color:#898887;"> 00:21:21,221</span>
Good bye
</pre></body></html>
......@@ -6,7 +6,7 @@
<!ENTITY pathpart "[^&#34;&#42;&#61;/:&lt;&gt;?\\[\]\|]"> <!-- valid character in a file name -->
<!ENTITY tasten "((Strg|Alt|Shift)-)?([a-z0-9]|F[1-9]|F1[0-2]|Esc|Bksp|Tab|Enter|Up|Down|Left|Right|PgUp|PgDn|Home|End|Ins|Del)">
]>
<language name="4DOS BatchToMemory" kateversion="5.0" version="6" section="Scripts" extensions="*.btm" casesensitive="0" indenter="cstyle" author="Stefan Huebner (st0ff@npl.de)" license="LGPL">
<language name="4DOS BatchToMemory" kateversion="5.0" version="7" section="Scripts" extensions="*.btm" casesensitive="0" indenter="cstyle" author="Stefan Huebner (st0ff@npl.de)" license="LGPL">
<!--DONE:
- comments are there
- substitutions are there
......@@ -706,8 +706,8 @@ Here we start with functional contexts. These actually do something more than j
<context name="cmdInkey" attribute="String" lineEndContext="#pop"
fallthroughContext="#pop!inputMessage" fallthrough="true">
<RegExpr attribute="Option" context="inputKeysDP" String="/k:" insensitive="true"/>
<RegExpr attribute="Option" context="inputKeysAZ" String="/k\&quot;" insensitive="true"/>
<StringDetect attribute="Option" context="inputKeysDP" String="/k:" insensitive="true"/>
<StringDetect attribute="Option" context="inputKeysAZ" String="/k&quot;" insensitive="true"/>
<StringDetect attribute="Error" String="/k" insensitive="true"/>
<StringDetect attribute="Option" String="/m" insensitive="true"/>
<IncludeRules context="input"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="AMPLE" version="8" kateversion="5.2" section="Scripts" extensions="*.ample;*.menu;*.startup" mimetype="text/x-amplesrc" priority="5" author="Christian Parg (cparg@gmx.de)" license="Apache &amp; LGPL" >
<language name="AMPLE" version="9" kateversion="5.2" section="Scripts" extensions="*.ample;*.menu;*.startup" mimetype="text/x-amplesrc" priority="5" author="Christian Parg (cparg@gmx.de)" license="Apache &amp; LGPL" >
<!--
#################################################################################################
## AMPLE Highlight file by Christian Parg (cparg_(at)_gmx_de)
......@@ -3090,7 +3090,7 @@ Note: I used this hack to extract the functions from the reference documentation
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<DetectSpaces />
<!-- org C definition: <RegExpr attribute="Preprocessor" context="Outscoped" String="#\s*if\s+0" beginRegion="PP" firstNonSpace="true" /> -->
<RegExpr attribute="Preprocessor" context="#stay" String="#pragma" firstNonSpace="true" />
<StringDetect attribute="Preprocessor" context="#stay" String="#pragma" firstNonSpace="true" />
<keyword attribute="Keyword" context="#stay" String="keywords"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Ansys" version="7" kateversion="5.0" section="Scientific" extensions="*.ans" author="Giovanni Bacci (giovanni@castellodilari.it)" license="LGPL" >
<language name="Ansys" version="8" kateversion="5.0" section="Scientific" extensions="*.ans" author="Giovanni Bacci (giovanni@castellodilari.it)" license="LGPL" >
<highlighting>
<list name="session_cmds">
<item>/BATCH</item>
......@@ -2005,7 +2005,7 @@
<Int attribute="NumInt" context="Int Suffixes" />
</context>
<context name="Int Suffixes" attribute="NumInt" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<StringDetect attribute="NumInt" context="#pop" String="**" />
<Detect2Chars attribute="NumInt" context="#pop" char="*" char1="*" />
</context>
<context attribute="String" name="doublequotestring" lineEndContext="#stay" >
<DetectChar attribute="String" context="#pop" char="&quot;" />
......
This diff is collapsed.
......@@ -51,7 +51,7 @@
<!ENTITY sectionL4 "^(?:={5}|#{5})\s+(?=\S)">
<!ENTITY sectionL5 "^(?:={6}|#{6})\s+(?=\S)">
]>
<language author="Andreas Gratzer" extensions="*.ad;*.adoc;*.asciidoc" kateversion="5.0" mimetype="text/asciidoc" name="AsciiDoc" license="MIT" section="Markup" version="4">
<language author="Andreas Gratzer" extensions="*.ad;*.adoc;*.asciidoc" kateversion="5.0" mimetype="text/asciidoc" name="AsciiDoc" license="MIT" section="Markup" version="5">
<highlighting>
<list name="macro">
<item>anchor</item>
......@@ -393,7 +393,7 @@
<RegExpr String="(?:btn|footnote(ref)?|kbd):\[.*?\]" attribute="Preprocessor"/>
<RegExpr String="pass:\w*\[.*?\]" attribute="Preprocessor"/>
<RegExpr String="(?:icon|image|menu):[^:].*?\[.*?\]" attribute="Preprocessor"/>
<RegExpr String="toc::\[\]" attribute="Preprocessor"/>
<StringDetect String="toc::[]" attribute="Preprocessor"/>
</context>
<context name="R marked" attribute="Normal" lineEndContext="#stay">
......
......@@ -9,7 +9,7 @@
<!ENTITY pathpart "([\w_@.&#37;*?+-]|\\ )"> <!-- valid character in a file name -->
<!ENTITY charbeforecomment "[\s;]"> <!-- character before a comment # -->
]>
<language name="Bash" version="11" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<language name="Bash" version="12" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;APKBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)
......@@ -951,23 +951,23 @@
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocNQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="^%2\b" dynamic="true" column="0"/>
<IncludeRules context="FindSubstitutions" />
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocIQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="HereDocINQ" dynamic="true">
<RegExpr attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<StringDetect attribute="Redirection" context="HereDocRemainder" String="%1" dynamic="true" />
<RegExpr attribute="Redirection" context="#pop#pop" String="^\t*%2\b" dynamic="true" column="0"/>
<IncludeRules context="FindSubstitutions" />
</context>
......
......@@ -2,7 +2,7 @@
<!DOCTYPE language>
<!-- Based on Python syntax highlighting v1.99 by Primoz Anzur, Paul Giannaros, Michael Bueker, Per Wigren -->
<!-- Also based on boo.lang from gtksourceview -->
<language name="Boo" version="6" kateversion="5.0" section="Sources" extensions="*.boo" mimetype="text/x-boo" casesensitive="1" author="Marc Dassonneville" license="LGPL">
<language name="Boo" version="7" kateversion="5.0" section="Sources" extensions="*.boo" mimetype="text/x-boo" casesensitive="1" author="Marc Dassonneville" license="LGPL">
<highlighting>
<list name="namespace">
<item>import</item>
......@@ -184,8 +184,8 @@
<DetectChar attribute="Operator" char="(" context="parenthesised" beginRegion="parenthesis"/>
<DetectChar attribute="Operator" char=")" context="#pop" endRegion="parenthesis"/>
<StringDetect attribute="Operator" String="[|" context="Quasi-Quotation" beginRegion="qq"/>
<StringDetect attribute="Operator" String="|]" context="#pop" endRegion="qq"/>
<Detect2Chars attribute="Operator" char="[" char1="|" context="Quasi-Quotation" beginRegion="qq"/>
<Detect2Chars attribute="Operator" char="|" char1="]" context="#pop" endRegion="qq"/>
<AnyChar attribute="Operator" String="+*/%|=;!&lt;&gt;!^&amp;~-" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
......@@ -206,7 +206,7 @@
<context name="Tripple Q-comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCChar attribute="Comment" context="#stay"/>
<RegExpr attribute="Comment" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
<StringDetect attribute="Comment" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
<IncludeRules context="##Alerts"/>
</context>
......@@ -214,28 +214,28 @@
<HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
<StringDetect attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
</context>
<context name="Raw Tripple A-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCStringChar attribute="Raw String" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
<StringDetect attribute="String" String="'''" context="#pop" endRegion="Tripple A-region"/>
</context>
<context name="Tripple Q-string" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCStringChar attribute="String Char" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
<StringDetect attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
</context>
<context name="Raw Tripple Q-string" attribute="Raw String" lineEndContext="#stay" noIndentationBasedFolding="true">
<HlCStringChar attribute="Raw String" context="#stay"/>
<RegExpr attribute="String Substitution" String="%\([a-zA-Z0-9_]+\)[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String Substitution" String="%[a-zA-Z]" context="#stay"/>
<RegExpr attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
<StringDetect attribute="String" String="&quot;&quot;&quot;" context="#pop" endRegion="Tripple Q-region"/>
</context>
<context name="Comment SlashSlash" attribute="Comment" lineEndContext="#pop" >
......
......@@ -22,7 +22,7 @@
* Boston, MA 02110-1301, USA. *
**********************************************************************
-->
<language version="12" kateversion="5.0" name="Clojure" section="Sources" extensions="*.clj;*.cljs;*.cljc" mimetype="" author="Dominik Haumann [lisp] modified for clojure by Caspar Hasenclever" license="LGPLv2+">
<language version="13" kateversion="5.0" name="Clojure" section="Sources" extensions="*.clj;*.cljs;*.cljc" mimetype="" author="Dominik Haumann [lisp] modified for clojure by Caspar Hasenclever" license="LGPLv2+">
<highlighting>
<list name="definitions">
<item>def</item>
......@@ -741,10 +741,10 @@
<DetectChar attribute="Brackets1" context="Level1" char="("/>
</context>
<context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<StringDetect attribute="Float" context="#pop" String="M" insensitive="false"/>
<DetectChar attribute="Float" context="#pop" char="M"/>
</context>
<context name="Int Suffixes" attribute="Decimal" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
<StringDetect attribute="Decimal" context="#pop" String="N" insensitive="false"/>
<DetectChar attribute="Decimal" context="#pop" char="N"/>
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<IncludeRules context="##Alerts"/>
......
......@@ -2,7 +2,7 @@
<!DOCTYPE language SYSTEM "language.dtd">
<language name="CoffeeScript"
version="13"
version="14"
kateversion="5.0"
section="Scripts"
extensions="Cakefile;*.coffee;*.coco;*.cson"
......@@ -268,7 +268,7 @@
</context>
<context name="Javascript Template" attribute="JavaScript Template" lineEndContext="#stay" noIndentationBasedFolding="1">
<RegExpr attribute="Escape" context="#stay" String="\\\\\\`"/>
<StringDetect attribute="Escape" context="#stay" String="\\\`"/>
<Detect2Chars attribute="JavaScript Template" context="RegExpAfterString##JavaScript" char="\" char1="`" endRegion="Template"/> <!-- End template. -->
<DetectChar context="#pop" char="`" lookAhead="true"/>
<Detect2Chars attribute="JavaScript Substitution" context="Javascript Substitution" char="$" char1="{"/>
......
......@@ -10,7 +10,7 @@
<!-- 19.04.2003 wb Some more Enhancements -->
<!-- 18.04.2003 wb Enhancenment for Maior / Minor Comments and Full / ReadOnly Exports, Folds for Procedures, Records, Comments -->
<!-- 17.04.2003 wb Enhancements for Relation and Operators -->
<language name="Component-Pascal" version="3" kateversion="2.3" section="Sources" extensions="*.cp;*.bro" mimetype="text/x-component-pascal" author="Werner Braun (wb@o3-software.de)" license="">
<language name="Component-Pascal" version="4" kateversion="2.3" section="Sources" extensions="*.cp;*.bro" mimetype="text/x-component-pascal" author="Werner Braun (wb@o3-software.de)" license="">
<highlighting>
<list name="keywords">
<item>BEGIN</item>
......@@ -103,8 +103,8 @@
<DetectChar attribute="String" context="String2" char="'" />
<RegExpr attribute="Keyword" context="#stay" String="PROCEDURE\s" beginRegion="Proc"/>
<RegExpr attribute="Normal Text" context="#stay" String="ABSTRACT;|EMPTY;|END\s*[A-Za-z][A-Za-z0-9_]*\;" endRegion="Proc"/>
<RegExpr attribute="Type" context="#stay" String="RECORD" beginRegion="Rec"/>
<RegExpr attribute="Keyword" context="#stay" String="END" endRegion="Rec"/>
<StringDetect attribute="Type" context="#stay" String="RECORD" beginRegion="Rec"/>
<StringDetect attribute="Keyword" context="#stay" String="END" endRegion="Rec"/>
<StringDetect attribute="MemAlloc" context="#stay" String="NEW"/>
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Exit" context="#stay" String="exits"/>
......
......@@ -99,7 +99,7 @@
========================================================================
-->
<language name="D" version="7" kateversion="5.0" section="Sources" extensions="*.d;*.D;*.di;*.DI;" mimetype="text/x-dsrc" casesensitive="true" author="Diggory Hardy (diggory.hardy@gmail.com), Aziz Köksal (aziz.koeksal@gmail.com), Jari-Matti Mäkelä (jmjm@iki.fi), Simon J Mackenzie (project.katedxml@smackoz.fastmail.fm)" license="LGPL">
<language name="D" version="8" kateversion="5.0" section="Sources" extensions="*.d;*.D;*.di;*.DI;" mimetype="text/x-dsrc" casesensitive="true" author="Diggory Hardy (diggory.hardy@gmail.com), Aziz Köksal (aziz.koeksal@gmail.com), Jari-Matti Mäkelä (jmjm@iki.fi), Simon J Mackenzie (project.katedxml@smackoz.fastmail.fm)" license="LGPL">
<highlighting>
<!-- User-defined keywords (add identifiers you'd like highlighted here) -->
<list name="userkeywords">
......@@ -720,8 +720,8 @@
</context>
<!-- q"*...*" -->
<context name="DelimStrSimple" attribute="Delimited String Content" lineEndContext="#stay">
<RegExpr attribute="Delimited String Delimiter" context="#pop" String="%1&quot;" dynamic="true" />
<RegExpr attribute="Error" context="#pop" String="%1" dynamic="true" />
<StringDetect attribute="Delimited String Delimiter" context="#pop" String="%1&quot;" dynamic="true" />
<StringDetect attribute="Error" context="#pop" String="%1" dynamic="true" />
</context>
<!-- Comments -->
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Debian Changelog" version="11" kateversion="2.4" section="Other" extensions="" mimetype="">
<language name="Debian Changelog" version="12" kateversion="2.4" section="Other" extensions="" mimetype="">
<highlighting>
<list name="keywords">
<item>urgency</item>
......@@ -227,8 +227,8 @@
<context attribute="Normal Text" lineEndContext="#stay" name="INIT">
<RegExpr attribute="Keyword" context="Head" String="[^ ]*" column="0"/>
<RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;"/>
<RegExpr attribute="Keyword" context="#stay" String=" \-\-" column="0"/>
<RegExpr attribute="Keyword" context="#stay" String=" \*" column="0"/>
<StringDetect attribute="Keyword" context="#stay" String=" --" column="0"/>
<StringDetect attribute="Keyword" context="#stay" String=" *" column="0"/>
<RegExpr attribute="Bug" context="#stay" String="closes:[\s]*((bug\s*)?#\s*\d+)(\s*, *(bug\s*)?#\s*\d+)*" insensitive="true"/>
</context>
......
......@@ -4,26 +4,18 @@
<!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord -->
<!ENTITY sl_word ".*?(?=&wordsep;)">
]>
<!--
sed -E '
/LineContinue/d
/name="(ML_|BlockComment")/,/<\/context>/d
/\/\/\/| ml_word /d
s#//!#\x2d-!#
' doxygen.xml > doxygenlua.xml
+ edit
- <language>
- "Normal Text" context
-->
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** -->
<language name="DoxygenLua"
version="9"
version="11"
kateversion="5.0"
section="Markup"
extensions=""
mimetype=""
author="Dominik Haumann (dhaumann@kde.org)"
license="MIT">
license="MIT"
>
<highlighting>
<!-- NOTE: all tags may begin with a \ or @ char
so if you add/change tags you have to do it twice -->
......@@ -230,8 +222,7 @@ sed -E '
TODO Not all commands are handled properly nowadays :( Need few more contexts...
-->
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<StringDetect attribute="Comment" context="LineComment" String="--!" />
<StringDetect attribute="Comment" context="LineComment" String="---" />
<RegExpr attribute="Comment" context="LineComment" String="--(?:!|(?:-(?=[^-]|$)))"/>
<RegExpr attribute="Region" context="#stay" String="--\s*@\{\s*$" beginRegion="MemberGroup" />
<RegExpr attribute="Region" context="#stay" String="--\s*@\}\s*$" endRegion="MemberGroup" />
</context>
......@@ -245,6 +236,20 @@ sed -E '
<DetectChar attribute="Comment" context="Entities" char="&amp;" lookAhead="true" />
</context>
<!-- NOTE: all contexts beginning with ML_ are for multiline comments
The following contexts contain a Detect2Chars that looks for a */ sequence
to end multiline comments. Singleline comments do not have this limitation -
that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed.
<IncludeRules context="acontext"> could be used instead but it would make context switching
much more complex and very hard to understand! (But use IncludeRules where the rules don't
refer to another SL_*/ML_* context, to help maintainability.)
-->
<!-- tag contexts -->
<!-- html contexts -->
<!-- NOTE: all contexts beginning with SL_ are for singleline comments -->
<context attribute="Comment" lineEndContext="#pop" name="SL_StartTag">
<keyword attribute="Tags" context="#pop!SL_TagWord" String="TagWord" />
......@@ -334,6 +339,7 @@ sed -E '
<context name="SL_FindNextLine" attribute="Normal Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop#pop#pop">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="---" />
<StringDetect attribute="Comment" context="#pop" String="--!" />
<RegExpr attribute="Comment" context="#pop#pop#pop" String="." lookAhead="true" endRegion="VerbatimBlock" />
</context>
......@@ -349,8 +355,8 @@ sed -E '
</context>
<context name="SL_Formula" attribute="Formulas" lineEndContext="SL_FindNextLine">
<WordDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" />
<WordDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" />
<StringDetect attribute="Tags" context="#pop" String="\f]" endRegion="VerbatimBlock" />
<StringDetect attribute="Tags" context="#pop" String="@f]" endRegion="VerbatimBlock" />
<!-- TODO: How to force LaTeX math context here?? -->
<!-- <IncludeRules context="##LaTeX" /> -->
</context>
......
......@@ -30,7 +30,7 @@
name="Elixir"
section="Sources"