summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-02-21 15:15:59 +0200
committerMavridis Philippe <mavridisf@gmail.com>2024-02-21 15:19:34 +0200
commit69e7320797a31ffd5755f8b750e1435b46ea2a7e (patch)
treed21a3ac98bfff19e599a5f28304a978dfdf520f6
parentd658f64554c9af1e86833160f69c4997db456a01 (diff)
downloadtdelibs-69e7320797a31ffd5755f8b750e1435b46ea2a7e.tar.gz
tdelibs-69e7320797a31ffd5755f8b750e1435b46ea2a7e.zip
Kate: add support for template string syntax of JS
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit f7592c53ba87975ecd9914c93df30b9d8a9b7a85)
-rw-r--r--kate/data/javascript.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/kate/data/javascript.xml b/kate/data/javascript.xml
index e90f0b051..916d213c1 100644
--- a/kate/data/javascript.xml
+++ b/kate/data/javascript.xml
@@ -101,6 +101,7 @@
<DetectChar attribute="String" context="String" char="&quot;" />
<DetectChar attribute="String" context="String SQ" char="'" />
+ <DetectChar attribute="String" context="Template String" char="`" />
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/" />
@@ -154,6 +155,11 @@
<LineContinue/>
<DetectChar attribute="String" context="#pop" char="'" />
</context>
+ <context attribute="String" lineEndContext="#pop" name="Template String">
+ <HlCStringChar attribute="Char" />
+ <LineContinue/>
+ <DetectChar attribute="String" context="#pop" char="`" />
+ </context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<IncludeRules context="##Alerts" />