Compare commits

..

No commits in common. "5e53e96bff014f466baee0efb00186c37914e5be" and "bb1fd1bcb05200c65d79607afe267965cc2411df" have entirely different histories.

4 changed files with 9 additions and 52 deletions

View File

@ -67,6 +67,8 @@ select distinct ["test"] from table where ['a'] = 1 end;
a := array(1, 2);
b := array((1, 2), (3, 4));
// 换行字符串
sql += "update ts_xbcheck result set isvalid = "$status$remark$" where checkid in ('"$array2str
(checkid[(i-1)*len:], "','")$"');\r\n"
sql +=
(checkid[(io1)*len:], "','")$"');\r\n"

View File

@ -10,10 +10,6 @@ Notable changes to the `TSL` extension will be documented in this file.
- 更换`LSP`日志模块,启动参数`verbose -> trace`
## [2.0.1]: 2025-06-30
- 修复:变量类型声明误匹配问题,如`len:], "','")$"');`
## [2.0.0]: 2025-06-22
- 初步支持`LSP`--关键字补全

View File

@ -2,10 +2,7 @@
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "TSL",
"scopeName": "source.tsl",
"fileTypes": [
"tsl",
"tsf"
],
"fileTypes": ["tsl", "tsf"],
"patterns": [
{
"include": "#comments"
@ -192,7 +189,7 @@
},
"variable-declarations": {
"name": "meta.variable.declaration.tsl",
"match": "(?<!\\?\\s*)(\\w+)\\s*(:)(?!=)\\s*((?:array\\s*(?:\\[[^\\]]*\\])?\\s+of\\s+)?[a-zA-Z_][a-zA-Z0-9_]*(?:\\.[a-zA-Z_][a-zA-Z0-9_]*)*)\\s*(;)?",
"match": "(?<!\\?\\s*)(\\w+)\\s*(:)(?!=)\\s*([^;?]*)(;)?",
"captures": {
"1": {
"name": "variable.other.declaration.tsl"
@ -321,50 +318,22 @@
{
"name": "string.quoted.single.tsl",
"begin": "[uU]?'",
"end": "'|(?=\\s*$)",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.tsl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.tsl"
}
},
"end": "'",
"patterns": [
{
"name": "constant.character.escape.tsl",
"match": "\\\\."
},
{
"name": "constant.character.escape.newline.tsl",
"match": "\\\\\\r?\\n"
}
]
},
{
"name": "string.quoted.double.tsl",
"begin": "[uU]?\"",
"end": "\"|(?=\\s*$)",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.tsl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.tsl"
}
},
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.tsl",
"match": "\\\\."
},
{
"name": "constant.character.escape.newline.tsl",
"match": "\\\\\\r?\\n"
}
]
},
@ -372,16 +341,6 @@
"name": "string.quoted.raw.tsl",
"begin": "[uU]?[rR](['\"])",
"end": "\\1",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.tsl"
}
},
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.tsl"
}
},
"patterns": [
{
"name": "constant.character.escape.tsl",
@ -573,4 +532,4 @@
"match": "[()\\[\\]{},;:.@?]"
}
}
}
}

Binary file not shown.