From b60390c241ecd8f3cc5c0ac137aa817b3068ef0c Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Mon, 4 Dec 2017 09:54:18 -0600 Subject: [PATCH] [console] Remove capture group from *_script check --- .../public/src/sense_editor/mode/x_json_highlight_rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_plugins/console/public/src/sense_editor/mode/x_json_highlight_rules.js b/src/core_plugins/console/public/src/sense_editor/mode/x_json_highlight_rules.js index 58af6ce01c0af..47945827f8128 100644 --- a/src/core_plugins/console/public/src/sense_editor/mode/x_json_highlight_rules.js +++ b/src/core_plugins/console/public/src/sense_editor/mode/x_json_highlight_rules.js @@ -7,7 +7,7 @@ var jsonRules = function (root) { rules[root] = [ { token: ["variable", "whitespace", "ace.punctuation.colon", "whitespace", "punctuation.start_triple_quote"], - regex: '("([^"]*_)?script"|"inline")(\\s*?)(:)(\\s*?)(""")', + regex: '("(?:[^"]*_)?script"|"inline")(\\s*?)(:)(\\s*?)(""")', next: "script-start", merge: false, push: true