Commit 2b4c1018 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

sync hl work

parent 911cac45
......@@ -11,7 +11,7 @@ menu:
<!-- This page is auto-generated by "make update_kate_editor_org" in syntax-highlighting.git -->
<p>Kate's highlighting is powered by the <a href="https://api.kde.org/frameworks/syntax-highlighting/html/">KSyntaxHighlighting</a> framework and supports 351 different languages.
<p>Kate's highlighting is powered by the <a href="https://api.kde.org/frameworks/syntax-highlighting/html/">KSyntaxHighlighting</a> framework and supports 352 different languages.
</p><p>Below you can find a list of all supported languages together with example renderings of the highlighting both as light and dark theme HTML pages.
......@@ -204,6 +204,8 @@ menu:
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/mako.xml">Mako</a></td>
<td colspan=2><center><a target=_blank href="https://invent.kde.org/frameworks/syntax-highlighting#adding-unit-tests-for-a-syntax-definition">Submit Example</a></center></td>
</tr>
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/mapcss.xml">MapCSS</a></td>
<td><a target=_blank href="/syntax/data/html/highlight.mapcss.html">Light Theme</a></td><td><a target=_blank href="/syntax/data/html/highlight.mapcss.dark.html">Dark Theme</a></td></tr>
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/markdown.xml">Markdown</a></td>
<td><a target=_blank href="/syntax/data/html/test.markdown.html">Light Theme</a></td><td><a target=_blank href="/syntax/data/html/test.markdown.dark.html">Dark Theme</a></td></tr>
<tr><td>Markup</td><td><a target=_blank href="/syntax/data/syntax/mediawiki.xml">MediaWiki</a></td>
......
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>highlight.mapcss</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (MapCSS) - Theme (Breeze Dark)"/>
</head><body style="background-color:#232629;color:#cfcfc2"><pre>
<span style="color:#7a7c7d;">/*</span>
<span style="color:#7a7c7d;"> * </span><span style="color:#3f8058;font-style:italic;">SPDX-FileCopyrightText:</span><span style="color:#7a7c7d;"> 2022 Volker Krause &lt;vkrause@kde.org&gt;</span>
<span style="color:#7a7c7d;"> * </span><span style="color:#3f8058;font-style:italic;">SPDX-License-Identifier:</span><span style="color:#3f8058;font-style:italic;"> </span><span style="color:#3f8058;font-style:italic;">MIT</span>
<span style="color:#7a7c7d;"> */</span>
<span style="color:#7a7c7d;">// samples taken from kosmindoormap MapCSS parser unit tests</span>
<span style="font-weight:bold;">@import</span> <span style="color:#8e44ad;">url</span>(<span style="color:#f44f4f;">&quot;included.mapcss&quot;</span>);
<span style="color:#7a7c7d;">// union selector</span>
<span style="color:#2980b9;">area</span>[railway=platform],
<span style="color:#2980b9;">relation</span>[type=multipolygon][railway=platform]
{
<span style="color:#7f8c8d;">color</span>: <span style="color:#f67400;">#ff550022</span>;
<span style="color:#7f8c8d;">fill-color</span>: <span style="color:#f67400;">#80f0e0d0</span>;
}
<span style="color:#7a7c7d;">// chained selector</span>
<span style="color:#2980b9;">area</span>[railway=platform] <span style="color:#2980b9;">node</span>[sign]
{
<span style="color:#7f8c8d;">fill-color</span>: <span style="color:#f67400;">#ff0000</span>;
<span style="color:#7f8c8d;">opacity</span>: <span style="color:#f67400;">0.5</span>;
}
<span style="color:#7a7c7d;">// condition with colon-separated keys</span>
<span style="color:#2980b9;">node</span>[building:part][building:part=elevator]
{
<span style="color:#7f8c8d;">opacity</span>: <span style="color:#f67400;">1</span>;
<span style="color:#7f8c8d;">color</span>: building:color;
}
<span style="color:#7a7c7d;">// text properties</span>
<span style="color:#2980b9;">*</span> {
<span style="color:#7f8c8d;">text</span>: ref;
<span style="color:#7f8c8d;">text-color</span>: <span style="color:#f67400;">#ff00ff</span>;
}
<span style="color:#7a7c7d;">// line properties</span>
<span style="color:#2980b9;">line</span> {
<span style="color:#7f8c8d;">dashes</span>: <span style="color:#f67400;">3</span>,<span style="color:#f67400;">5</span>;
<span style="color:#7f8c8d;">linecap</span>: <span style="color:#27aeae;font-weight:bold;">round</span>;
<span style="color:#7f8c8d;">linejoin</span>: <span style="color:#27aeae;font-weight:bold;">bevel</span>;
<span style="color:#7f8c8d;">casing-width</span>: <span style="color:#f67400;">1</span>;
<span style="color:#7f8c8d;">casing-color</span>: <span style="color:#f67400;">#444444</span>;
<span style="color:#7f8c8d;">casing-dashes</span>: <span style="color:#f67400;">1</span>,<span style="color:#f67400;">1</span>;
}
<span style="color:#7a7c7d;">// zoom ranges</span>
<span style="color:#2980b9;">node</span>|<span style="color:#3f8058;">z12-13</span> {}
<span style="color:#2980b9;">node</span>|<span style="color:#3f8058;">z10</span> {}
<span style="color:#2980b9;">node</span>|<span style="color:#3f8058;">z-10</span> {}
<span style="color:#2980b9;">node</span>|<span style="color:#3f8058;">z10-</span> {}
<span style="color:#2980b9;">node</span>|<span style="color:#3f8058;">z12-13</span>[name] {}
<span style="color:#2980b9;">node</span>|<span style="color:#3f8058;">z14-</span>[name] {}
<span style="color:#7a7c7d;">// numeric comparison conditions</span>
<span style="color:#2980b9;">*</span> [layer&gt;1],
<span style="color:#2980b9;">*</span> [layer&lt;2],
<span style="color:#2980b9;">*</span> [layer&gt;=3],
<span style="color:#2980b9;">*</span> [layer&lt;=4] {}
<span style="color:#7a7c7d;">// object types as tag or property values</span>
<span style="color:#2980b9;">area</span>[indoor=area] {
<span style="color:#7f8c8d;">text-position</span>: <span style="color:#27aeae;font-weight:bold;">line</span>;
<span style="color:#7f8c8d;">width</span>: width;
}
<span style="color:#7a7c7d;">// units</span>
<span style="color:#2980b9;">*</span> {
<span style="color:#7f8c8d;">font-size</span>: <span style="color:#f67400;">16</span><span style="font-weight:bold;">pt</span>;
<span style="color:#7f8c8d;">width</span>: <span style="color:#f67400;">42</span><span style="font-weight:bold;">px</span>;
<span style="color:#7f8c8d;">casing-width</span>: <span style="color:#f67400;">2</span><span style="font-weight:bold;">m</span>;
}
<span style="color:#7a7c7d;">// negative numbers</span>
<span style="color:#2980b9;">*</span> {
<span style="color:#7f8c8d;">width</span>: -<span style="color:#f67400;">10.42</span>;
}
<span style="color:#7a7c7d;">// colors</span>
<span style="color:#2980b9;">*</span> {
<span style="color:#7f8c8d;">text-color</span>: <span style="color:#f67400;">#aabbcc</span>;
<span style="color:#7f8c8d;">fill-color</span>: <span style="color:#f67400;">#80ccbbaa</span>;
<span style="color:#7f8c8d;">casing-color</span>: <span style="color:#f67400;">#123</span>;
<span style="color:#7f8c8d;">shield-color</span>: <span style="color:#8e44ad;">rgb</span>(<span style="color:#f67400;">1.0</span>, <span style="color:#f67400;">0.5</span>, <span style="color:#f67400;">0.25</span>);
<span style="color:#7f8c8d;">shield-casing-color</span>: <span style="color:#8e44ad;">rgba</span>(<span style="color:#f67400;">0.75</span>, <span style="color:#f67400;">1.0</span>, <span style="color:#f67400;">0.25</span>, <span style="color:#f67400;">0.5</span>);
<span style="color:#7f8c8d;">color</span>: <span style="color:#f44f4f;">&quot;red&quot;</span>;
}
<span style="color:#7a7c7d;">// set tag</span>
<span style="color:#2980b9;">node</span>[shop=bakery] {
<span style="font-weight:bold;">set</span> mx:important;
}
<span style="color:#7a7c7d;">// set tag to a specific value</span>
<span style="color:#2980b9;">area</span>[shop=bakery] {
<span style="font-weight:bold;">set</span> mx:importance = <span style="color:#f44f4f;">&quot;high&quot;</span>;
<span style="font-weight:bold;">set</span> mx:importance = 20;
}
<span style="color:#7a7c7d;">// set class</span>
<span style="color:#2980b9;">node</span>[shop=bakery],
<span style="color:#2980b9;">node</span>[shop=pastry]
{
<span style="font-weight:bold;">set</span> <span style="color:#27aeae;">.importantShops</span>;
}
<span style="color:#7a7c7d;">// class selectors</span>
<span style="color:#2980b9;">node</span><span style="color:#27aeae;">.importantShops</span> { <span style="color:#7f8c8d;">color</span>: <span style="color:#f44f4f;">&quot;red&quot;</span>; }
<span style="color:#2980b9;">way</span><span style="color:#27aeae;">.importantShops</span>|<span style="color:#3f8058;">z20-</span> { <span style="color:#7f8c8d;">color</span>: <span style="color:#f44f4f;">&quot;green&quot;</span>; }
<span style="color:#2980b9;">*</span><span style="color:#27aeae;">.importantShops</span>[access=no] { <span style="color:#7f8c8d;">color</span>: <span style="color:#f44f4f;">&quot;blue&quot;</span>; }
<span style="color:#7a7c7d;">// layer selectors (see https://wiki.openstreetmap.org/wiki/MapCSS/0.2/Proposal_layer_selector)</span>
<span style="color:#2980b9;">way</span>[highway]<span style="color:#fdbc4b;font-weight:bold;">::road</span> {
<span style="color:#7f8c8d;">width</span>: <span style="color:#f67400;">8</span>;
<span style="color:#7f8c8d;">color</span>: <span style="color:#f67400;">#ffffff</span>;
<span style="color:#7f8c8d;">casing-width</span>: <span style="color:#f67400;">2</span>;
<span style="color:#7f8c8d;">casing-color</span>: <span style="color:#f67400;">#a0a0a0</span>;
}
<span style="color:#2980b9;">way</span>[railway=tram]<span style="color:#fdbc4b;font-weight:bold;">::tram</span> {
<span style="color:#7f8c8d;">width</span>: <span style="color:#f67400;">2</span>;
<span style="color:#7f8c8d;">color</span>: <span style="color:#f67400;">#303030</span>;
<span style="color:#7f8c8d;">z-index</span>: <span style="color:#f67400;">1</span>;
}
<span style="color:#7a7c7d;">// default layer selector</span>
<span style="color:#2980b9;">node</span><span style="color:#fdbc4b;font-weight:bold;">::default</span> {
<span style="color:#7f8c8d;">icon-image</span>: <span style="color:#f44f4f;">&quot;bla&quot;</span>;
}
</pre></body></html>
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>highlight.mapcss</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (MapCSS) - Theme (Breeze Light)"/>
</head><body style="background-color:#ffffff;color:#1f1c1b"><pre>
<span style="color:#898887;">/*</span>
<span style="color:#898887;"> * </span><span style="color:#ca60ca;font-style:italic;">SPDX-FileCopyrightText:</span><span style="color:#898887;"> 2022 Volker Krause &lt;vkrause@kde.org&gt;</span>
<span style="color:#898887;"> * </span><span style="color:#ca60ca;font-style:italic;">SPDX-License-Identifier:</span><span style="color:#ca60ca;font-style:italic;"> </span><span style="color:#ca60ca;font-style:italic;">MIT</span>
<span style="color:#898887;"> */</span>
<span style="color:#898887;">// samples taken from kosmindoormap MapCSS parser unit tests</span>
<span style="font-weight:bold;">@import</span> <span style="color:#644a9b;">url</span>(<span style="color:#bf0303;">&quot;included.mapcss&quot;</span>);
<span style="color:#898887;">// union selector</span>
<span style="color:#0057ae;">area</span>[railway=platform],
<span style="color:#0057ae;">relation</span>[type=multipolygon][railway=platform]
{
<span style="color:#644a9b;font-weight:bold;">color</span>: <span style="color:#b08000;">#ff550022</span>;
<span style="color:#644a9b;font-weight:bold;">fill-color</span>: <span style="color:#b08000;">#80f0e0d0</span>;
}
<span style="color:#898887;">// chained selector</span>
<span style="color:#0057ae;">area</span>[railway=platform] <span style="color:#0057ae;">node</span>[sign]
{
<span style="color:#644a9b;font-weight:bold;">fill-color</span>: <span style="color:#b08000;">#ff0000</span>;
<span style="color:#644a9b;font-weight:bold;">opacity</span>: <span style="color:#b08000;">0.5</span>;
}
<span style="color:#898887;">// condition with colon-separated keys</span>
<span style="color:#0057ae;">node</span>[building:part][building:part=elevator]
{
<span style="color:#644a9b;font-weight:bold;">opacity</span>: <span style="color:#b08000;">1</span>;
<span style="color:#644a9b;font-weight:bold;">color</span>: building:color;
}
<span style="color:#898887;">// text properties</span>
<span style="color:#0057ae;">*</span> {
<span style="color:#644a9b;font-weight:bold;">text</span>: ref;
<span style="color:#644a9b;font-weight:bold;">text-color</span>: <span style="color:#b08000;">#ff00ff</span>;
}
<span style="color:#898887;">// line properties</span>
<span style="color:#0057ae;">line</span> {
<span style="color:#644a9b;font-weight:bold;">dashes</span>: <span style="color:#b08000;">3</span>,<span style="color:#b08000;">5</span>;
<span style="color:#644a9b;font-weight:bold;">linecap</span>: <span style="color:#aa5500;">round</span>;
<span style="color:#644a9b;font-weight:bold;">linejoin</span>: <span style="color:#aa5500;">bevel</span>;
<span style="color:#644a9b;font-weight:bold;">casing-width</span>: <span style="color:#b08000;">1</span>;
<span style="color:#644a9b;font-weight:bold;">casing-color</span>: <span style="color:#b08000;">#444444</span>;
<span style="color:#644a9b;font-weight:bold;">casing-dashes</span>: <span style="color:#b08000;">1</span>,<span style="color:#b08000;">1</span>;
}
<span style="color:#898887;">// zoom ranges</span>
<span style="color:#0057ae;">node</span>|<span style="color:#ca60ca;">z12-13</span> {}
<span style="color:#0057ae;">node</span>|<span style="color:#ca60ca;">z10</span> {}
<span style="color:#0057ae;">node</span>|<span style="color:#ca60ca;">z-10</span> {}
<span style="color:#0057ae;">node</span>|<span style="color:#ca60ca;">z10-</span> {}
<span style="color:#0057ae;">node</span>|<span style="color:#ca60ca;">z12-13</span>[name] {}
<span style="color:#0057ae;">node</span>|<span style="color:#ca60ca;">z14-</span>[name] {}
<span style="color:#898887;">// numeric comparison conditions</span>
<span style="color:#0057ae;">*</span> [layer&gt;1],
<span style="color:#0057ae;">*</span> [layer&lt;2],
<span style="color:#0057ae;">*</span> [layer&gt;=3],
<span style="color:#0057ae;">*</span> [layer&lt;=4] {}
<span style="color:#898887;">// object types as tag or property values</span>
<span style="color:#0057ae;">area</span>[indoor=area] {
<span style="color:#644a9b;font-weight:bold;">text-position</span>: <span style="color:#aa5500;">line</span>;
<span style="color:#644a9b;font-weight:bold;">width</span>: width;
}
<span style="color:#898887;">// units</span>
<span style="color:#0057ae;">*</span> {
<span style="color:#644a9b;font-weight:bold;">font-size</span>: <span style="color:#b08000;">16</span><span style="font-weight:bold;">pt</span>;
<span style="color:#644a9b;font-weight:bold;">width</span>: <span style="color:#b08000;">42</span><span style="font-weight:bold;">px</span>;
<span style="color:#644a9b;font-weight:bold;">casing-width</span>: <span style="color:#b08000;">2</span><span style="font-weight:bold;">m</span>;
}
<span style="color:#898887;">// negative numbers</span>
<span style="color:#0057ae;">*</span> {
<span style="color:#644a9b;font-weight:bold;">width</span>: -<span style="color:#b08000;">10.42</span>;
}
<span style="color:#898887;">// colors</span>
<span style="color:#0057ae;">*</span> {
<span style="color:#644a9b;font-weight:bold;">text-color</span>: <span style="color:#b08000;">#aabbcc</span>;
<span style="color:#644a9b;font-weight:bold;">fill-color</span>: <span style="color:#b08000;">#80ccbbaa</span>;
<span style="color:#644a9b;font-weight:bold;">casing-color</span>: <span style="color:#b08000;">#123</span>;
<span style="color:#644a9b;font-weight:bold;">shield-color</span>: <span style="color:#644a9b;">rgb</span>(<span style="color:#b08000;">1.0</span>, <span style="color:#b08000;">0.5</span>, <span style="color:#b08000;">0.25</span>);
<span style="color:#644a9b;font-weight:bold;">shield-casing-color</span>: <span style="color:#644a9b;">rgba</span>(<span style="color:#b08000;">0.75</span>, <span style="color:#b08000;">1.0</span>, <span style="color:#b08000;">0.25</span>, <span style="color:#b08000;">0.5</span>);
<span style="color:#644a9b;font-weight:bold;">color</span>: <span style="color:#bf0303;">&quot;red&quot;</span>;
}
<span style="color:#898887;">// set tag</span>
<span style="color:#0057ae;">node</span>[shop=bakery] {
<span style="font-weight:bold;">set</span> mx:important;
}
<span style="color:#898887;">// set tag to a specific value</span>
<span style="color:#0057ae;">area</span>[shop=bakery] {
<span style="font-weight:bold;">set</span> mx:importance = <span style="color:#bf0303;">&quot;high&quot;</span>;
<span style="font-weight:bold;">set</span> mx:importance = 20;
}
<span style="color:#898887;">// set class</span>
<span style="color:#0057ae;">node</span>[shop=bakery],
<span style="color:#0057ae;">node</span>[shop=pastry]
{
<span style="font-weight:bold;">set</span> <span style="color:#0057ae;">.importantShops</span>;
}
<span style="color:#898887;">// class selectors</span>
<span style="color:#0057ae;">node</span><span style="color:#0057ae;">.importantShops</span> { <span style="color:#644a9b;font-weight:bold;">color</span>: <span style="color:#bf0303;">&quot;red&quot;</span>; }
<span style="color:#0057ae;">way</span><span style="color:#0057ae;">.importantShops</span>|<span style="color:#ca60ca;">z20-</span> { <span style="color:#644a9b;font-weight:bold;">color</span>: <span style="color:#bf0303;">&quot;green&quot;</span>; }
<span style="color:#0057ae;">*</span><span style="color:#0057ae;">.importantShops</span>[access=no] { <span style="color:#644a9b;font-weight:bold;">color</span>: <span style="color:#bf0303;">&quot;blue&quot;</span>; }
<span style="color:#898887;">// layer selectors (see https://wiki.openstreetmap.org/wiki/MapCSS/0.2/Proposal_layer_selector)</span>
<span style="color:#0057ae;">way</span>[highway]<span style="font-weight:bold;">::road</span> {
<span style="color:#644a9b;font-weight:bold;">width</span>: <span style="color:#b08000;">8</span>;
<span style="color:#644a9b;font-weight:bold;">color</span>: <span style="color:#b08000;">#ffffff</span>;
<span style="color:#644a9b;font-weight:bold;">casing-width</span>: <span style="color:#b08000;">2</span>;
<span style="color:#644a9b;font-weight:bold;">casing-color</span>: <span style="color:#b08000;">#a0a0a0</span>;
}
<span style="color:#0057ae;">way</span>[railway=tram]<span style="font-weight:bold;">::tram</span> {
<span style="color:#644a9b;font-weight:bold;">width</span>: <span style="color:#b08000;">2</span>;
<span style="color:#644a9b;font-weight:bold;">color</span>: <span style="color:#b08000;">#303030</span>;
<span style="color:#644a9b;font-weight:bold;">z-index</span>: <span style="color:#b08000;">1</span>;
}
<span style="color:#898887;">// default layer selector</span>
<span style="color:#0057ae;">node</span><span style="font-weight:bold;">::default</span> {
<span style="color:#644a9b;font-weight:bold;">icon-image</span>: <span style="color:#bf0303;">&quot;bla&quot;</span>;
}
</pre></body></html>
......@@ -49,7 +49,7 @@
<span style="font-weight:bold;font-style:italic;">class</span> DateTime {
info<span style="color:#3f8058;">:</span> <span style="color:#2980b9;">string</span><span style="color:#3f8058;">;</span>
<span style="font-weight:bold;font-style:italic;">constructor</span>() { <span style="font-weight:bold;">this</span><span style="color:#3f8058;">.</span><span style="color:#2980b9;">info</span> <span style="color:#3f8058;">=</span> <span style="font-weight:bold;">&lt;?php</span> <span style="font-weight:bold;">echo</span>(<span style="color:#8e44ad;">date</span>(<span style="color:#f44f4f;">&quot;F d, Y h:i:s&quot;</span><span style="color:#27ae60;">,</span> <span style="color:#27aeae;">$timestamp</span>))<span style="color:#27ae60;">;</span> <span style="font-weight:bold;">?&gt;</span><span style="color:#3f8058;">;</span> }
<span style="font-weight:bold;font-style:italic;">get</span>() { <span style="color:#fdbc4b;font-weight:bold;">return</span> <span style="font-weight:bold;">this</span><span style="color:#3f8058;">.</span><span style="color:#2980b9;">info</span><span style="color:#3f8058;">;</span> }
<span style="font-weight:bold;">get</span>() { <span style="color:#fdbc4b;font-weight:bold;">return</span> <span style="font-weight:bold;">this</span><span style="color:#3f8058;">.</span><span style="color:#2980b9;">info</span><span style="color:#3f8058;">;</span> }
}
<span style="font-weight:bold;">&lt;/script&gt;</span>
<span style="color:#7a7c7d;">&lt;!-- MustacheJS --&gt;</span>
......
......@@ -49,7 +49,7 @@
<span style="font-weight:bold;font-style:italic;">class</span> DateTime {
info<span style="color:#ca60ca;">:</span> <span style="color:#0057ae;">string</span><span style="color:#ca60ca;">;</span>
<span style="font-weight:bold;font-style:italic;">constructor</span>() { <span style="font-weight:bold;">this</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">info</span> <span style="color:#ca60ca;">=</span> <span style="font-weight:bold;">&lt;?php</span> <span style="font-weight:bold;">echo</span>(<span style="color:#644a9b;">date</span>(<span style="color:#bf0303;">&quot;F d, Y h:i:s&quot;</span><span style="color:#006e28;">,</span> <span style="color:#0057ae;">$timestamp</span>))<span style="color:#006e28;">;</span> <span style="font-weight:bold;">?&gt;</span><span style="color:#ca60ca;">;</span> }
<span style="font-weight:bold;font-style:italic;">get</span>() { <span style="font-weight:bold;">return</span> <span style="font-weight:bold;">this</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">info</span><span style="color:#ca60ca;">;</span> }
<span style="font-weight:bold;">get</span>() { <span style="font-weight:bold;">return</span> <span style="font-weight:bold;">this</span><span style="color:#ca60ca;">.</span><span style="color:#0057ae;">info</span><span style="color:#ca60ca;">;</span> }
}
<span style="font-weight:bold;">&lt;/script&gt;</span>
<span style="color:#898887;">&lt;!-- MustacheJS --&gt;</span>
......
This diff is collapsed.
......@@ -475,6 +475,13 @@ f <span style="color:#27ae60;font-weight:bold;">&lt;-</span> <span style="color:
<span style="font-weight:bold;">Select</span> col1, col2 <span style="font-weight:bold;">From</span> stuff <span style="font-weight:bold;">Where</span> stuff<span style="color:#3daee9;">.</span>col1 <span style="font-weight:bold;">IS</span> <span style="font-weight:bold;">NOT</span> <span style="font-weight:bold;">NuLL</span>;
<span style="color:#c45b00;">```</span>
<span style="color:#8e44ad;font-weight:bold;">## Nim</span>
<span style="color:#c45b00;">```nim</span>
<span style="font-weight:bold;">proc</span> <span style="color:#f44f4f;font-weight:bold;">main</span><span style="font-weight:bold;">()</span> <span style="color:#7a7c7d;">=</span>
<span style="color:#fdbc4b;font-weight:bold;">echo</span> <span style="color:#f44f4f;">&quot;Hello world!&quot;</span>
<span style="color:#c45b00;">```</span>
<span style="color:#8e44ad;font-weight:bold;">## TypeScript</span>
<span style="color:#c45b00;">```ts</span>
......
......@@ -475,6 +475,13 @@ f <span style="color:#006e28;font-weight:bold;">&lt;-</span> <span style="font-w
<span style="font-weight:bold;">Select</span> col1, col2 <span style="font-weight:bold;">From</span> stuff <span style="font-weight:bold;">Where</span> stuff<span style="color:#924c9d;">.</span>col1 <span style="font-weight:bold;">IS</span> <span style="font-weight:bold;">NOT</span> <span style="font-weight:bold;">NuLL</span>;
<span style="color:#b08000;">```</span>
<span style="color:#644a9b;font-weight:bold;">## Nim</span>
<span style="color:#b08000;">```nim</span>
<span style="font-weight:bold;">proc</span> <span style="color:#bf0303;font-weight:bold;">main</span><span style="font-weight:bold;">()</span> <span style="color:#898887;">=</span>
<span style="font-weight:bold;">echo</span> <span style="color:#bf0303;">&quot;Hello world!&quot;</span>
<span style="color:#b08000;">```</span>
<span style="color:#644a9b;font-weight:bold;">## TypeScript</span>
<span style="color:#b08000;">```ts</span>
......
......@@ -448,4 +448,6 @@ animals<span style="font-weight:bold;">.</span><span style="color:#8e44ad;">add<
<span style="color:#fdbc4b;font-weight:bold;">for</span> a <span style="color:#7a7c7d;font-weight:bold;">in</span> animals<span style="font-weight:bold;">:</span>
<span style="color:#fdbc4b;font-weight:bold;">echo</span> a<span style="font-weight:bold;">.</span><span style="color:#8e44ad;">vocalize</span><span style="font-weight:bold;">()</span>
<span style="color:#fdbc4b;font-weight:bold;">echo</span> a<span style="font-weight:bold;">.</span><span style="color:#8e44ad;">ageHumanYrs</span><span style="font-weight:bold;">()</span>
<span style="font-weight:bold;">let</span> slash <span style="color:#7a7c7d;">=</span> <span style="color:#f44f4f;">&quot;</span><span style="color:#3daee9;">\\</span><span style="color:#f44f4f;">&quot;</span>
</pre></body></html>
......@@ -448,4 +448,6 @@ animals<span style="font-weight:bold;">.</span><span style="color:#644a9b;">add<
<span style="font-weight:bold;">for</span> a <span style="color:#898887;font-weight:bold;">in</span> animals<span style="font-weight:bold;">:</span>
<span style="font-weight:bold;">echo</span> a<span style="font-weight:bold;">.</span><span style="color:#644a9b;">vocalize</span><span style="font-weight:bold;">()</span>
<span style="font-weight:bold;">echo</span> a<span style="font-weight:bold;">.</span><span style="color:#644a9b;">ageHumanYrs</span><span style="font-weight:bold;">()</span>
<span style="font-weight:bold;">let</span> slash <span style="color:#898887;">=</span> <span style="color:#bf0303;">&quot;</span><span style="color:#3daee9;">\\</span><span style="color:#bf0303;">&quot;</span>
</pre></body></html>
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="INI Files" section="Configuration" extensions="*.ini;*.pls;*.kcfgc" mimetype="" version="11" kateversion="5.0" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
<language name="INI Files" section="Configuration" extensions="*.ini;*.pls;*.kcfgc;.gitattributes*;.gitconfig*;.gitmodules*;.editorconfig*" mimetype="" version="12" kateversion="5.0" author="Jan Janssen (medhefgo@web.de)" license="LGPL">
<highlighting>
<list name="keywords">
......
......@@ -29,7 +29,7 @@
<language name="JavaScript/PHP" hidden="true" version="22" kateversion="5.53" section="Other" extensions=""
<language name="JavaScript/PHP" hidden="true" version="24" kateversion="5.53" section="Other" extensions=""
mimetype="" indenter="cstyle"
author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license="">
......@@ -66,6 +66,8 @@
<item>typeof</item>
<item>var</item>
<item>void</item>
<item>set</item>
<item>get</item>
</list>
<list name="reserved">
<item>async</item>
......@@ -1081,7 +1083,6 @@
<item>port</item>
<item>prefix</item>
<item>previous</item>
<item>previousDibling</item>
<item>product</item>
<item>productSub</item>
<item>profile</item>
......
......@@ -23,7 +23,7 @@
* QML
* CoffeeScript (embedded)
-->
<language name="JavaScript" version="22" kateversion="5.53" section="Scripts" extensions="*.js;*.mjs;*.cjs;*.kwinscript;*.julius"
<language name="JavaScript" version="24" kateversion="5.53" section="Scripts" extensions="*.js;*.mjs;*.cjs;*.kwinscript;*.julius"
mimetype="text/x-javascript;application/x-javascript;application/javascript;text/javascript" indenter="cstyle"
author="Anders Lund (anders@alweb.dk), Joseph Wenninger (jowenn@kde.org), Whitehawk Stormchaser (zerokode@gmx.net)" license="">
......@@ -60,6 +60,8 @@
<item>typeof</item>
<item>var</item>
<item>void</item>
<item>set</item>
<item>get</item>
</list>
<list name="reserved">
<item>async</item>
......@@ -1075,7 +1077,6 @@
<item>port</item>
<item>prefix</item>
<item>previous</item>
<item>previousDibling</item>
<item>product</item>
<item>productSub</item>
<item>profile</item>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
MapCSS: https://wiki.openstreetmap.org/wiki/MapCSS/0.2
layer selector extension: https://wiki.openstreetmap.org/wiki/MapCSS/0.2/Proposal_layer_selector
-->
<language name="MapCSS" section="Markup" version="1" kateversion="5.0" extensions="*.mapcss" author="Volker Krause (vkrause@kde.org)" license="MIT">
<highlighting>
<list name="listKeywords">
<item>@import</item>
<item>set</item>
</list>
<list name="listFunctions">
<item>eval</item>
<item>rgb</item>
<item>rgba</item>
<item>url</item>
</list>
<list name="listObjects">
<item>node</item>
<item>way</item>
<item>relation</item>
<item>area</item>
<item>line</item>
<item>canvas</item>
</list>
<list name="listProperties">
<item>antialiasing</item>
<item>casing-color</item>
<item>casing-dashes</item>
<item>casing-linecap</item>
<item>casing-linejoin</item>
<item>casing-opacity</item>
<item>casing-width</item>
<item>color</item>
<item>dashes</item>
<item>extrude</item>
<item>extrude-edge-color</item>
<item>extrude-edge-opacity</item>
<item>extrude-face-color</item>
<item>extrude-face-opacity</item>
<item>fill-color</item>
<item>fill-image</item>
<item>fill-opacity</item>
<item>font-family</item>
<item>font-size</item>
<item>font-style</item>
<item>font-variant</item>
<item>font-weight</item>
<item>icon-color</item>
<item>icon-height</item>
<item>icon-image</item>
<item>icon-opacity</item>
<item>icon-width</item>
<item>image</item>
<item>linecap</item>
<item>linejoin</item>
<item>max-width</item>
<item>opacity</item>
<item>shield-color</item>
<item>shield-frame-color</item>
<item>shield-frame-width</item>
<item>shield-casing-color</item>
<item>shield-casing-width</item>
<item>shield-image</item>
<item>shield-opacity</item>
<item>shield-shape</item>
<item>shield-text</item>
<item>text</item>
<item>text-color</item>
<item>text-decoration</item>
<item>text-halo-color</item>
<item>text-halo-radius</item>
<item>text-opacity</item>
<item>text-offset</item>
<item>text-position</item>
<item>text-transform</item>
<item>width</item>
<item>z-index</item>
</list>
<list name="listConstants">
<item>bevel</item>
<item>bold</item>
<item>capitalize</item>
<item>center</item>
<item>full</item>
<item>italic</item>
<item>line</item>
<item>lowercase</item>
<item>miter</item>
<item>none</item>
<item>normal</item>
<item>rectangular</item>
<item>round</item>
<item>rounded</item>
<item>small-caps</item>
<item>square</item>
<item>text</item>
<item>uppercase</item>
</list>
<list name="listUnits">
<item>m</item>
<item>pt</item>
<item>px</item>
</list>
<contexts>
<context name="ctxNormal" lineEndContext="#stay" attribute="Normal">
<DetectChar char="[" context="ctxCondition"/>
<DetectChar char="{" beginRegion="RegionBrace" context="ctxDeclarationBlock"/>
<Float attribute="Float"/>
<Int attribute="Decimal"/>
<keyword String="listKeywords" attribute="Keyword"/>
<keyword String="listFunctions" attribute="Function"/>
<keyword String="listObjects" attribute="Type"/>
<DetectChar char="*" attribute="Type"/>
<DetectChar attribute="String" context="ctxString" char="&quot;"/>
<Detect2Chars attribute="Comment" context="ctxSingleLineComment" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="ctxComment" char="/" char1="*" beginRegion="RegionComment"/>
<RegExpr String="::\w+" context="#stay" attribute="Layer"/>
<RegExpr String="[:\.]\w+" context="#stay" attribute="Class"/>
<RegExpr String="(?&lt;=|)z(?:\d+)?-?(?:\d+)?" context="#stay" attribute="Zoom"/>
</context>
<context name="ctxCondition" lineEndContext="#stay" attribute="Normal">
<DetectChar char="]" context="#pop"/>
</context>
<context name="ctxDeclarationBlock" lineEndContext="#stay" attribute="Normal">
<DetectChar char="}" endRegion="RegionBrace" context="#pop"/>
<keyword String="listKeywords" attribute="Keyword"/>
<keyword String="listFunctions" attribute="Function"/>
<keyword String="listObjects" attribute="Type"/>
<keyword String="listProperties" attribute="Properties" context="ctxDeclaration"/>
<DetectChar attribute="String" context="ctxString" char="&quot;"/>
<Detect2Chars attribute="Comment" context="ctxSingleLineComment" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="ctxComment" char="/" char1="*" beginRegion="RegionComment"/>
<RegExpr String="\.\w+" context="#stay" attribute="Class"/>
</context>
<context name="ctxDeclaration" attribute="Normal" lineEndContext="#stay">
<DetectChar attribute="Normal" context="#pop" char=";"/>
<keyword String="listFunctions" attribute="Function"/>
<Float attribute="Float"/>
<Int attribute="Decimal"/>