From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/highlight.js/lib/languages/kotlin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'node_modules/highlight.js/lib/languages/kotlin.js') diff --git a/node_modules/highlight.js/lib/languages/kotlin.js b/node_modules/highlight.js/lib/languages/kotlin.js index 246e5c9f3..573d5ae2a 100644 --- a/node_modules/highlight.js/lib/languages/kotlin.js +++ b/node_modules/highlight.js/lib/languages/kotlin.js @@ -31,17 +31,17 @@ module.exports = function(hljs) { // for string templates var SUBST = { className: 'subst', - variants: [ - {begin: '\\$' + hljs.UNDERSCORE_IDENT_RE}, - {begin: '\\${', end: '}', contains: [hljs.APOS_STRING_MODE, hljs.C_NUMBER_MODE]} - ] + begin: '\\${', end: '}', contains: [hljs.APOS_STRING_MODE, hljs.C_NUMBER_MODE] + }; + var VARIABLE = { + className: 'variable', begin: '\\$' + hljs.UNDERSCORE_IDENT_RE }; var STRING = { className: 'string', variants: [ { begin: '"""', end: '"""', - contains: [SUBST] + contains: [VARIABLE, SUBST] }, // Can't use built-in modes easily, as we want to use STRING in the meta // context as 'meta-string' and there's no syntax to remove explicitly set @@ -54,7 +54,7 @@ module.exports = function(hljs) { { begin: '"', end: '"', illegal: /\n/, - contains: [hljs.BACKSLASH_ESCAPE, SUBST] + contains: [hljs.BACKSLASH_ESCAPE, VARIABLE, SUBST] } ] }; -- cgit v1.2.3