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;"># Sample AppArmor Profile.</span>
<span style="color:#7a7c7d;"># License: Public Domain</span>
<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:#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;">#</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;"># 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;"># 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;" />
......
......@@ -12,36 +12,26 @@
]>
<!--
AppArmor Profiles Syntax Highlighting Definition for the KDE KSyntaxHighlighting Framework
==========================================================================================
This file is part of the KDE's KSyntaxHighlighting framework.
AppArmor Profiles Syntax Highlighting Definition
===========================================================================
Copyright (c) 2017-2019 Nibaldo González S. (nibgonz@gmail.com)
This file is part of the KDE's KSyntaxHighlighting framework.
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
SPDX-FileCopyrightText: 2017-2020 Nibaldo González S. <nibgonz@gmail.com>
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
SPDX-License-Identifier: MIT
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==========================================================================================
===========================================================================
Last update:
Syntax highlighting based on AppArmor 2.13.3
Syntax highlighting based on AppArmor 3.0.0
For more details about the syntax of AppArmor profiles, visit:
https://gitlab.com/apparmor/apparmor/wikis/Documentation
https://manpages.ubuntu.com/manpages/disco/en/man5/apparmor.d.5.html
https://manpages.ubuntu.com/manpages/focal/en/man5/apparmor.d.5.html
Change log:
* Version 12 [02-Oct-2020]: (AppArmor 3.0) Add ABI rules and new profile flags.
* Version 11 [30-Sep-2020]: Update itemData's and rule_mount_fstypes list.
* Version 10 [25-Oct-2019]: Use non-capturing groups in RegExpr.
* Version 9 [20-Jun-2019]: (AppArmor 2.13.3):
- Add new network domain keywords.
......@@ -73,7 +63,7 @@
-->
<language name="AppArmor Security Profile"
version="10"
version="12"
kateversion="5.0"
section="Markup"
extensions="usr.bin.*;usr.sbin.*;bin.*;sbin.*;usr.lib.*;usr.lib64.*;usr.lib32.*;usr.libx32.*;usr.libexec.*;usr.local.bin.*;usr.local.sbin.*;usr.local.lib*;opt.*;etc.cron.*;snap.*;snap-update-ns.*;snap-confine.*"
......@@ -97,9 +87,12 @@
<item>audit</item>
<item>complain</item>
<item>enforce</item>
<item>kill</item>
<item>unconfined</item>
<item>mediate_deleted</item>
<item>attach_disconnected</item>
<item>chroot_relative</item>
<!-- Others -->
<item>chroot_attach</item>
<item>chroot_no_attach</item>
<item>delegate_deleted</item>
......@@ -108,15 +101,15 @@
</list>
<!-- Rule Qualifiers -->
<list name="access_types">
<list name="rule_access_qualifiers">
<item>allow</item>
<item>deny</item>
</list>
<list name="file_qualifiers">
<list name="file_rule_qualifiers">
<item>owner</item>
<item>other</item>
</list>
<list name="qualifiers">
<list name="rule_qualifiers">
<item>audit</item>
<!-- noaudit/quiet, defined, not -->
</list>
......@@ -297,21 +290,33 @@
<item>nouser</item>
</list>
<list name="rule_mount_fstypes">
<!-- Stackable FS -->
<item>ecryptfs</item>
<item>overlayfs</item>
<item>unionfs</item>
<item>shm</item>
<!-- VFS Types -->
<item>cryfs</item>
<item>encfs</item>
<item>overlayfs</item>
<item>unionfs</item>
<!-- Specialpurpose FS -->
<item>devtmpfs</item>
<item>ramfs</item>
<item>tmpfs</item>
<!-- Block-based, Network & Pseudo FS -->
<item>adfs</item>
<item>affs</item>
<item>afs</item>
<item>apfs</item>
<item>apparmorfs</item>
<item>autofs</item>
<item>bdev</item>
<item>bfs</item>
<item>bpf</item>
<item>btrfs</item>
<item>cachefs</item>
<item>cgroup</item>
<item>ceph</item>
<item>cgroup2</item>
<item>cgroup</item>
<item>cifs</item>
<item>coda</item>
<item>coherent</item>
<item>configfs</item>
<item>cpuset</item>
......@@ -319,90 +324,79 @@
<item>debugfs</item>
<item>devfs</item>
<item>devpts</item>
<item>devtmpfs</item>
<item>efs</item>
<item>fuse</item>
<item>fuseblk</item>
<item>fusectl</item>
<item>futexfs</item>
<item>hugetlbfs</item>
<item>kernfs</item>
<item>mqueue</item>
<item>pipefs</item>
<item>proc</item>
<item>procfs</item>
<item>pstorefs</item>
<item>pstore</item>
<item>ramfs</item>
<item>romfs</item>
<item>rootfs</item>
<item>sdcardfs</item>
<item>securityfs</item>
<item>selinuxfs</item>
<item>sockfs</item>
<item>specfs</item>
<item>squashfs</item>
<item>swapfs</item>