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>
pull/261/head
Mavridis Philippe 9 months ago
parent 3b32c2fa89
commit f7592c53ba
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -101,6 +101,7 @@
<DetectChar attribute="String" context="String" char="&quot;" /> <DetectChar attribute="String" context="String" char="&quot;" />
<DetectChar attribute="String" context="String SQ" char="'" /> <DetectChar attribute="String" context="String SQ" char="'" />
<DetectChar attribute="String" context="Template String" char="`" />
<IncludeRules context="##Doxygen" /> <IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/" /> <Detect2Chars attribute="Comment" context="Comment" char="/" char1="/" />
@ -154,6 +155,11 @@
<LineContinue/> <LineContinue/>
<DetectChar attribute="String" context="#pop" char="'" /> <DetectChar attribute="String" context="#pop" char="'" />
</context> </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"> <context attribute="Comment" lineEndContext="#pop" name="Comment">
<IncludeRules context="##Alerts" /> <IncludeRules context="##Alerts" />

Loading…
Cancel
Save