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 Dark)"/>
</head><body style="background-color:#232629;color:#cfcfc2"><pre>
<span style="color:#7a7c7d;"># </span><span style="color:#3f8058;">kate:</span><span style="color:#7a7c7d;"> </span><span style="color:#7f8c8d;">syntax</span><span style="color:#f44f4f;"> AppArmor Security Profile</span><span style="color:#7f8c8d;">;</span><span style="color:#7a7c7d;"> </span><span style="color:#7f8c8d;">replace-tabs</span><span style="color:#7a7c7d;"> </span><span style="color:#27ae60;">off</span><span style="color:#7f8c8d;">;</span>
<span style="color:#7a7c7d;">#</span>
<span style="color:#7a7c7d;"># Sample AppArmor Profile.</span>
<span style="color:#7a7c7d;"># License: Public Domain</span>
<span style="color:#7a7c7d;">#</span>
<span style="color:#7a7c7d;"># </span><span style="color:#81ca2d;background-color:#4d1f24;font-weight:bold;">NOTE</span><span style="color:#7a7c7d;">: This profile is not fully functional, since</span>
<span style="color:#7a7c7d;"># it is designed to test the syntax highlighting.</span>
<span style="color:#7a7c7d;"># it is designed to test the syntax highlighting</span>
<span style="color:#7a7c7d;"># for the KDE's KSyntaxHighlighting framework.</span>
<span style="color:#7a7c7d;">#</span>
<span style="color:#27ae60;">include </span><span style="color:#27ae60;">&lt;tunables/global&gt;</span>
<span style="color:#7a7c7d;"># Variable assignment</span>
<span style="color:#c45b00;">@{FOO_LIB}</span>=/usr/lib<span style="color:#da4453;">{</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">32</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">64}</span>/foo
<span style="color:#c45b00;">@{USER_DIR}</span>
= <span style="color:#c45b00;">@{HOME}</span>/Public <span style="color:#c45b00;">@{HOME}</span>/Desktop <span style="color:#da4453;text-decoration:underline;">#</span>No-Comment
<span style="color:#c45b00;">@{USER_DIR}</span> += <span style="color:#c45b00;">@{HOME}</span>/Hello <span style="color:#3daee9;">\</span>
<span style="color:#f67400;">@{FOO_LIB}</span>=/usr/lib<span style="color:#da4453;">{</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">32</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">64}</span>/foo
<span style="color:#f67400;">@{USER_DIR}</span>
= <span style="color:#f67400;">@{HOME}</span>/Public <span style="color:#f67400;">@{HOME}</span>/Desktop <span style="color:#da4453;text-decoration:underline;">#</span>No-Comment
<span style="color:#f67400;">@{USER_DIR}</span> += <span style="color:#f67400;">@{HOME}</span>/Hello <span style="color:#3daee9;">\</span>
deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-comment aa#aa
<span style="color:#c45b00;">${BOOL}</span> = <span style="color:#2980b9;">true</span>
<span style="color:#f67400;">${BOOL}</span> = <span style="color:#2980b9;">true</span>
<span style="color:#7a7c7d;"># Alias</span>
<span style="color:#27aeae;font-weight:bold;">alias</span> /usr/ <span style="color:#da4453;font-weight:bold;">-&gt;</span> /mnt/usr/,
<span style="color:#7a7c7d;"># ABI feature</span>
<span style="color:#27aeae;font-weight:bold;">abi</span> <span style="color:#27ae60;">&lt;abi/3.0&gt;</span>,
<span style="color:#27aeae;font-weight:bold;">abi</span> <span style="color:#27ae60;">&lt;&quot;includes/abi/4.19&quot;&gt;</span>,
<span style="color:#27aeae;font-weight:bold;">abi</span> <span style="color:#27ae60;">&quot;simple_tests/includes/abi/4.19&quot;</span>,
<span style="color:#27aeae;font-weight:bold;">abi</span> <span style="color:#27ae60;">simple_tests/includes/abi/4.19</span>,
<span style="color:#7a7c7d;"># Profile for /usr/bin/foo</span>
<span style="color:#8e44ad;font-weight:bold;">profile</span> <span style="color:#8e44ad;">foo</span> /usr/bin/foo <span style="color:#27ae60;">flags</span>=(<span style="color:#da4453;">attach_disconnected</span> <span style="color:#da4453;">enforce</span>) {
<span style="color:#8e44ad;font-weight:bold;">profile</span> <span style="color:#8e44ad;">foo</span> /usr/bin/foo <span style="color:#27ae60;">flags</span>=(<span style="color:#da4453;">attach_disconnected</span> <span style="color:#da4453;">enforce</span>) <span style="color:#27ae60;">xattrs</span>=(<span style="color:#2980b9;">myvalue</span>=foo <span style="color:#2980b9;">user.bar</span>=<span style="color:#3daee9;">*</span> <span style="color:#2980b9;">user.foo</span>=<span style="color:#f44f4f;">&quot;bar&quot;</span> ) {
<span style="color:#27ae60;">#include </span><span style="color:#27ae60;">&lt;abstractions/ubuntu-helpers&gt;</span>
<span style="color:#27ae60;">#include</span><span style="color:#27ae60;">&lt;abstractions/wayland&gt;</span>
<span style="color:#27ae60;">#include</span><span style="color:#27ae60;">&quot;/etc/apparmor.d/abstractions/ubuntu-konsole&quot;</span>
......@@ -37,12 +48,12 @@ deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-com
<span style="color:#7a7c7d;"># File rules</span>
/<span style="color:#da4453;">{</span><span style="color:#7f8c8d;">,</span><span style="color:#3daee9;">**</span><span style="color:#da4453;">/}</span><span style="font-weight:bold;"> r</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> /<span style="color:#da4453;">{home</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">media</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">mnt</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">srv</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">net}</span>/<span style="color:#3daee9;">**</span><span style="font-weight:bold;"> r</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#c45b00;">@{USER_DIR}</span>/<span style="color:#3daee9;">**</span><span style="font-weight:bold;"> rw</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#f67400;">@{USER_DIR}</span>/<span style="color:#3daee9;">**</span><span style="font-weight:bold;"> rw</span>,
<span style="font-weight:bold;">audit</span> <span style="color:#da4453;font-weight:bold;">deny</span> <span style="color:#27aeae;font-weight:bold;">owner</span> /<span style="color:#3daee9;">**</span>/<span style="color:#3daee9;">*</span><span style="font-weight:bold;"> mx</span>,
/<span style="color:#3daee9;">**</span>.<span style="color:#da4453;">[tT][xX][tT]</span><span style="font-weight:bold;"> r</span>, <span style="color:#7a7c7d;"># txt</span>
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#27aeae;font-weight:bold;">file</span> <span style="color:#c45b00;">@{HOME}</span>/.local/share/foo/<span style="color:#da4453;">{</span><span style="color:#7f8c8d;">,</span><span style="color:#3daee9;">**</span><span style="color:#da4453;">}</span><span style="font-weight:bold;"> rwkl</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#c45b00;">@{HOME}</span>/.config/<span style="color:#3daee9;">*</span>.<span style="color:#da4453;">[a-zA-Z0-9]</span><span style="color:#3daee9;">*</span> <span style="font-weight:bold;"> rwk</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#27aeae;font-weight:bold;">file</span> <span style="color:#f67400;">@{HOME}</span>/.local/share/foo/<span style="color:#da4453;">{</span><span style="color:#7f8c8d;">,</span><span style="color:#3daee9;">**</span><span style="color:#da4453;">}</span><span style="font-weight:bold;"> rwkl</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#f67400;">@{HOME}</span>/.config/<span style="color:#3daee9;">*</span>.<span style="color:#da4453;">[a-zA-Z0-9]</span><span style="color:#3daee9;">*</span> <span style="font-weight:bold;"> rwk</span>,
<span style="color:#f44f4f;">&quot;/usr/share/</span><span style="color:#3daee9;">**</span><span style="color:#f44f4f;">&quot;</span><span style="font-weight:bold;"> r</span>,
<span style="color:#f44f4f;">&quot;/var/lib/flatpak/exports/share/</span><span style="color:#3daee9;">**</span><span style="color:#f44f4f;">&quot;</span><span style="font-weight:bold;"> r</span>,
......@@ -54,9 +65,9 @@ deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-com
<span style="color:#da4453;font-weight:bold;">deny</span> /etc/xdg/<span style="color:#da4453;">{autostart</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">systemd}</span>/<span style="color:#3daee9;">**</span> <span style="font-weight:bold;"> r</span>,
<span style="color:#da4453;font-weight:bold;">deny</span> /boot/<span style="color:#3daee9;">**</span> <span style="font-weight:bold;"> rwlkmx</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#c45b00;">@{PROC}</span>/<span style="color:#c45b00;">@{pid}</span>/<span style="color:#da4453;">{cmdline</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">mountinfo</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">mounts</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">stat</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">status</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">vmstat}</span><span style="font-weight:bold;"> r</span>,
<span style="color:#27aeae;font-weight:bold;">owner</span> <span style="color:#f67400;">@{PROC}</span>/<span style="color:#f67400;">@{pid}</span>/<span style="color:#da4453;">{cmdline</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">mountinfo</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">mounts</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">stat</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">status</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">vmstat}</span><span style="font-weight:bold;"> r</span>,
/sys/devices/<span style="color:#3daee9;">**</span>/uevent<span style="font-weight:bold;"> r</span>,
<span style="color:#c45b00;">@{FOO_LIB}</span>/<span style="color:#da4453;">{</span><span style="color:#c45b00;">@{multiarch}</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">64}</span>/<span style="color:#3daee9;">**</span><span style="font-weight:bold;"> mr</span>,
<span style="color:#f67400;">@{FOO_LIB}</span>/<span style="color:#da4453;">{</span><span style="color:#f67400;">@{multiarch}</span><span style="color:#7f8c8d;">,</span><span style="color:#da4453;">64}</span>/<span style="color:#3daee9;">**</span><span style="font-weight:bold;"> mr</span>,
/usr/bin/foo <span style="font-weight:bold;"> ixr</span>,
/usr/bin/dolphin <span style="font-weight:bold;"> pUx</span>,
......@@ -64,6 +75,7 @@ deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-com
/usr/bin/khelpcenter<span style="font-weight:bold;"> Cx</span> <span style="color:#da4453;font-weight:bold;">-&gt;</span> <span style="color:#8e44ad;font-style:italic;">sanitized_helper</span>,
/usr/bin/helloworld <span style="font-weight:bold;"> cxr</span> <span style="color:#da4453;font-weight:bold;">-&gt;</span>
<span style="color:#8e44ad;font-style:italic;">hello_world</span>,
/bin/<span style="color:#3daee9;">**</span><span style="font-weight:bold;"> px</span> <span style="color:#da4453;font-weight:bold;">-&gt;</span> <span style="color:#8e44ad;font-style:italic;">profile</span>,
<span style="color:#7a7c7d;"># Dbus rules</span>
<span style="color:#27aeae;font-weight:bold;">dbus</span> (<span style="font-weight:bold;">send</span>) <span style="color:#da4453;text-decoration:underline;">#</span>No-Comment
......@@ -115,7 +127,7 @@ deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-com
<span style="color:#7a7c7d;"># Mount rules</span>
<span style="color:#27aeae;font-weight:bold;">mount</span> <span style="color:#27ae60;">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:#27ae60;">vfstype</span>=<span style="color:#da4453;">ecryptfs</span> /home/<span style="color:#3daee9;">*</span>/.helloworld/ <span style="color:#da4453;font-weight:bold;">-&gt;</span> /home/<span style="color:#3daee9;">*</span>/helloworld/,
<span style="color:#27aeae;font-weight:bold;">mount</span> <span style="color:#27ae60;">options</span> <span style="color:#da4453;font-weight:bold;">in</span> (<span style="font-weight:bold;">rw</span>, <span style="font-weight:bold;">bind</span>) / <span style="color:#da4453;font-weight:bold;">-&gt;</span> /run/hellowordd/<span style="color:#3daee9;">*</span>.mnt,
<span style="color:#27aeae;font-weight:bold;">mount</span> <span style="color:#27ae60;">option</span>=<span style="font-weight:bold;">read-only</span> <span style="color:#27ae60;">fstype</span>=<span style="color:#da4453;">btrfs</span> /dev/sd<span style="color:#da4453;">[a-z][1-9]</span><span style="color:#3daee9;">*</span> <span style="color:#da4453;font-weight:bold;">-&gt;</span> /media/<span style="color:#3daee9;">*</span>/<span style="color:#3daee9;">*</span>,
<span style="color:#27aeae;font-weight:bold;">mount</span> <span style="color:#27ae60;">options</span>=<span style="font-weight:bold;">read-only</span> <span style="color:#27ae60;">fstype</span>=<span style="color:#da4453;">btrfs</span> /dev/sd<span style="color:#da4453;">[a-z][1-9]</span><span style="color:#3daee9;">*</span> <span style="color:#da4453;font-weight:bold;">-&gt;</span> /media/<span style="color:#3daee9;">*</span>/<span style="color:#3daee9;">*</span>,
<span style="color:#27aeae;font-weight:bold;">umount</span> /home/<span style="color:#3daee9;">*</span>/helloworld/,
<span style="color:#7a7c7d;"># Pivot Root rules</span>
......@@ -129,7 +141,7 @@ deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-com
<span style="color:#7a7c7d;"># Unix rules</span>
<span style="color:#27aeae;font-weight:bold;">unix</span> (<span style="font-weight:bold;">connect</span> <span style="font-weight:bold;">receive</span> <span style="font-weight:bold;">send</span>) <span style="color:#27ae60;">type</span>=(<span style="color:#27aeae;">stream</span>) <span style="color:#27ae60;">peer</span>=(<span style="color:#2980b9;">addr</span>=@/tmp/ibus/dbus-<span style="color:#3daee9;">*</span>,<span style="color:#2980b9;">label</span>=<span style="font-style:italic;">unconfined</span>),
<span style="color:#27aeae;font-weight:bold;">unix</span> (<span style="font-weight:bold;">send</span>,<span style="font-weight:bold;">receive</span>) <span style="color:#27ae60;">type</span>=(<span style="color:#27aeae;">stream</span>) <span style="color:#27ae60;">protocol</span>=0 <span style="color:#27ae60;">peer</span>=(<span style="color:#2980b9;">addr</span>=<span style="font-style:italic;">none</span>),
<span style="color:#27aeae;font-weight:bold;">unix</span> <span style="color:#27ae60;">peer</span>=(<span style="color:#2980b9;">label</span>=<span style="color:#c45b00;">@{profile_name}</span>,<span style="color:#2980b9;">addr</span>=@helloworld),
<span style="color:#27aeae;font-weight:bold;">unix</span> <span style="color:#27ae60;">peer</span>=(<span style="color:#2980b9;">label</span>=<span style="color:#f67400;">@{profile_name}</span>,<span style="color:#2980b9;">addr</span>=@helloworld),
<span style="color:#7a7c7d;"># Rlimit rule</span>
<span style="color:#27aeae;font-weight:bold;">set</span> <span style="color:#27aeae;font-weight:bold;">rlimit</span> <span style="color:#27aeae;">data</span> <span style="color:#da4453;font-weight:bold;">&lt;=</span> <span style="color:#f67400;">100</span><span style="color:#f67400;font-weight:bold;">M</span>,
......@@ -154,10 +166,10 @@ deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-com
<span style="color:#7a7c7d;"># Text after a variable is highlighted as path</span>
<span style="color:#27aeae;font-weight:bold;">file</span> /my/path<span style="font-weight:bold;"> r</span>,
<span style="color:#c45b00;">@{FOO_LIB}</span>file<span style="font-weight:bold;"> r</span>,
<span style="color:#c45b00;">@{FOO_LIB}</span>#my/path<span style="font-weight:bold;"> r</span>, <span style="color:#7a7c7d;">#Comment</span>
<span style="color:#c45b00;">@{FOO_LIB}</span>ñ<span style="color:#3daee9;">*</span><span style="font-weight:bold;"> r</span>,
<span style="color:#27aeae;font-weight:bold;">unix</span> (/path<span style="color:#3daee9;">\t</span><span style="color:#da4453;">{aa}</span><span style="color:#3daee9;">*</span>,*a <span style="color:#c45b00;">@{var}</span><span style="color:#3daee9;">*</span>path,* <span style="color:#c45b00;">@{var}</span>,*),
<span style="color:#f67400;">@{FOO_LIB}</span>file<span style="font-weight:bold;"> r</span>,
<span style="color:#f67400;">@{FOO_LIB}</span>#my/path<span style="font-weight:bold;"> r</span>, <span style="color:#7a7c7d;">#Comment</span>
<span style="color:#f67400;">@{FOO_LIB}</span>ñ<span style="color:#3daee9;">*</span><span style="font-weight:bold;"> r</span>,
<span style="color:#27aeae;font-weight:bold;">unix</span> (/path<span style="color:#3daee9;">\t</span><span style="color:#da4453;">{aa}</span><span style="color:#3daee9;">*</span>,*a <span style="color:#f67400;">@{var}</span><span style="color:#3daee9;">*</span>path,* <span style="color:#f67400;">@{var}</span>,*),
}
}
......@@ -187,7 +199,7 @@ deny owner <span style="color:#da4453;text-decoration:underline;">#</span>No-com
<span style="color:#2980b9;">label</span>=<span style="font-style:italic;">unconfined</span>), <span style="color:#7a7c7d;">#Comment</span>
<span style="color:#7a7c7d;"># Don't allow assignment of variables within profiles</span>
<span style="color:#c45b00;">@{VARIABLE}</span> <span style="color:#da4453;text-decoration:underline;">=</span> val1 val2 val3 <span style="color:#7a7c7d;"># Comment</span>
<span style="color:#f67400;">@{VARIABLE}</span> <span style="color:#da4453;text-decoration:underline;">=</span> val1 val2 val3 <span style="color:#7a7c7d;"># Comment</span>
<span style="color:#7a7c7d;"># Alias rules not allowed within profiles</span>
<span style="color:#da4453;text-decoration:underline;">alias</span> /run/ <span style="color:#da4453;font-weight:bold;">-&gt;</span> /mnt/run/,
......
<!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;"># </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:#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;"># 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"