diff options
author | Mavridis Philippe <[email protected]> | 2024-02-21 15:15:59 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-02-21 15:18:06 +0200 |
commit | f7592c53ba87975ecd9914c93df30b9d8a9b7a85 (patch) | |
tree | fac00f4011e9d1f8c822b8a4e6d5d140f342389a | |
parent | 3b32c2fa89463064b91553a13f1a30a45c5841f7 (diff) | |
download | tdelibs-f7592c53ba87975ecd9914c93df30b9d8a9b7a85.tar.gz tdelibs-f7592c53ba87975ecd9914c93df30b9d8a9b7a85.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 <[email protected]>
-rw-r--r-- | kate/data/javascript.xml | 6 |
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=""" /> <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" /> |