Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Commit 3dd2426

Browse files
fix regular expressions to allow whitespace before template tag
1 parent eef36a4 commit 3dd2426

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

syntaxes/es6-inline-css.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
]
4343
},
4444
{
45-
"begin": "(?i)((css|inline-css))(`)",
45+
"begin": "(?i)(\\s*(css|inline-css))(`)",
4646
"beginCaptures": {
4747
"1": {
4848
"name": "comment.block"

syntaxes/es6-inline-glsl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
]
4343
},
4444
{
45-
"begin": "(?i)((glsl|inline-glsl))(`)",
45+
"begin": "(?i)(\\s*(glsl|inline-glsl))(`)",
4646
"beginCaptures": {
4747
"1": {
4848
"name": "comment.block"

syntaxes/es6-inline-html.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
]
4343
},
4444
{
45-
"begin": "(?i)((html|template|inline-html|inline-template))(`)",
45+
"begin": "(?i)(\\s*(html|template|inline-html|inline-template))(`)",
4646
"beginCaptures": {
4747
"1": {
4848
"name": "comment.block"

syntaxes/es6-inline-sql.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"patterns": [
2424
{
25-
"begin": "(?i)(.?(sql))(`)",
25+
"begin": "(?i)(\\s*(sql))(`)",
2626
"end": "(`)",
2727
"beginCaptures": {
2828
"1": {

syntaxes/es6-inline-xml.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
]
3737
},
3838
{
39-
"begin": "((xml|inline-xml))(`)",
39+
"begin": "(?i)(\\s*(xml|inline-xml))(`)",
4040
"beginCaptures": {
4141
"1": {
4242
"name": "comment.block"

0 commit comments

Comments
 (0)