From dcf81c62656ccfd908e91fc7e6a1121fddf2dfd4 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Mon, 31 May 2021 19:47:57 +0200 Subject: [PATCH] Removes g flag from wordPatterns. --- extensions/css/language-configuration.json | 2 +- extensions/handlebars/language-configuration.json | 5 +---- extensions/html/language-configuration.json | 5 +---- extensions/less/language-configuration.json | 2 +- extensions/php/language-configuration.json | 2 +- extensions/scss/language-configuration.json | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/extensions/css/language-configuration.json b/extensions/css/language-configuration.json index 6ce9919abeb..83dbabd8760 100644 --- a/extensions/css/language-configuration.json +++ b/extensions/css/language-configuration.json @@ -31,5 +31,5 @@ "increaseIndentPattern": "(^.*\\{[^}]*$)", "decreaseIndentPattern": "^\\s*\\}" }, - "wordPattern": { "pattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]*(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])", "flags": "g" } + "wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]*(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])" } diff --git a/extensions/handlebars/language-configuration.json b/extensions/handlebars/language-configuration.json index 103024366b2..e132410dd29 100644 --- a/extensions/handlebars/language-configuration.json +++ b/extensions/handlebars/language-configuration.json @@ -23,10 +23,7 @@ { "open": "<", "close": ">" }, { "open": "{", "close": "}" } ], - "wordPattern": { - "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)", - "flags": "g" - }, + "wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)", "onEnterRules": [ { "beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!\\/)>)[^<]*$", "flags": "i" }, diff --git a/extensions/html/language-configuration.json b/extensions/html/language-configuration.json index 215d7df1f2f..51e103a6926 100644 --- a/extensions/html/language-configuration.json +++ b/extensions/html/language-configuration.json @@ -30,10 +30,7 @@ "end": "^\\s*" } }, - "wordPattern": { - "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)", - "flags": "g" - }, + "wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)", "onEnterRules": [ { "beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!\\/)>)[^<]*$", "flags": "i" }, diff --git a/extensions/less/language-configuration.json b/extensions/less/language-configuration.json index a75adf4edb1..7325d052704 100644 --- a/extensions/less/language-configuration.json +++ b/extensions/less/language-configuration.json @@ -32,5 +32,5 @@ "increaseIndentPattern": "(^.*\\{[^}]*$)", "decreaseIndentPattern": "^\\s*\\}" }, - "wordPattern": { "pattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]+(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])", "flags": "g" } + "wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]+(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])" } diff --git a/extensions/php/language-configuration.json b/extensions/php/language-configuration.json index 7a430e45f7f..e585ebf1c91 100644 --- a/extensions/php/language-configuration.json +++ b/extensions/php/language-configuration.json @@ -34,7 +34,7 @@ "end": "^\\s*(#|\/\/)endregion\\b" } }, - "wordPattern": { "pattern": "(-?\\d*\\.\\d\\w*)|([^\\-\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)", "flags": "g" }, + "wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\-\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)", "onEnterRules": [ { // e.g. /** | */ diff --git a/extensions/scss/language-configuration.json b/extensions/scss/language-configuration.json index 30a751fd77f..8ed82ad4a6c 100644 --- a/extensions/scss/language-configuration.json +++ b/extensions/scss/language-configuration.json @@ -32,5 +32,5 @@ "increaseIndentPattern": "(^.*\\{[^}]*$)", "decreaseIndentPattern": "^\\s*\\}" }, - "wordPattern": { "pattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]*(?=[^,{;]*[,{]))|(([@$#.!])?[\\w-?]+%?|[@#!$.])", "flags": "g" } + "wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]*(?=[^,{;]*[,{]))|(([@$#.!])?[\\w-?]+%?|[@#!$.])" }