Skip to content

Commit d3cf3bf

Browse files
committed
修正字符串跨行的一些问题
1 parent c09b9be commit d3cf3bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntaxes/lua.tmLanguage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
"name": "punctuation.definition.string.begin.lua"
202202
}
203203
},
204-
"end": "'[ \\t]*",
204+
"end": "'[ \\t]*|(?=\\n)",
205205
"endCaptures": {
206206
"0": {
207207
"name": "punctuation.definition.string.end.lua"
@@ -221,7 +221,7 @@
221221
"name": "punctuation.definition.string.begin.lua"
222222
}
223223
},
224-
"end": "\"[ \\t]*",
224+
"end": "\"[ \\t]*|(?=\\n)",
225225
"endCaptures": {
226226
"0": {
227227
"name": "punctuation.definition.string.end.lua"
@@ -545,7 +545,7 @@
545545
]
546546
},
547547
{
548-
"begin": "(?=[a-zA-Z_\\.\"])",
548+
"begin": "(?=[a-zA-Z_\\.\"'])",
549549
"end": "(?=[\\s\\),])",
550550
"patterns": [
551551
{

0 commit comments

Comments
 (0)