Compare commits
2 Commits
bb1fd1bcb0
...
5e53e96bff
| Author | SHA1 | Date |
|---|---|---|
|
|
5e53e96bff | |
|
|
b66c626310 |
|
|
@ -67,8 +67,6 @@ 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[(io1)*len:], "','")$"');\r\n"
|
||||
|
||||
(checkid[(i-1)*len:], "','")$"');\r\n"
|
||||
sql +=
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ 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`--关键字补全
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "TSL",
|
||||
"scopeName": "source.tsl",
|
||||
"fileTypes": ["tsl", "tsf"],
|
||||
"fileTypes": [
|
||||
"tsl",
|
||||
"tsf"
|
||||
],
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
|
|
@ -189,7 +192,7 @@
|
|||
},
|
||||
"variable-declarations": {
|
||||
"name": "meta.variable.declaration.tsl",
|
||||
"match": "(?<!\\?\\s*)(\\w+)\\s*(:)(?!=)\\s*([^;?]*)(;)?",
|
||||
"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*(;)?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.other.declaration.tsl"
|
||||
|
|
@ -318,22 +321,50 @@
|
|||
{
|
||||
"name": "string.quoted.single.tsl",
|
||||
"begin": "[uU]?'",
|
||||
"end": "'",
|
||||
"end": "'|(?=\\s*$)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.tsl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.tsl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.tsl",
|
||||
"match": "\\\\."
|
||||
},
|
||||
{
|
||||
"name": "constant.character.escape.newline.tsl",
|
||||
"match": "\\\\\\r?\\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.tsl",
|
||||
"begin": "[uU]?\"",
|
||||
"end": "\"",
|
||||
"end": "\"|(?=\\s*$)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.tsl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.tsl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.tsl",
|
||||
"match": "\\\\."
|
||||
},
|
||||
{
|
||||
"name": "constant.character.escape.newline.tsl",
|
||||
"match": "\\\\\\r?\\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -341,6 +372,16 @@
|
|||
"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",
|
||||
|
|
@ -532,4 +573,4 @@
|
|||
"match": "[()\\[\\]{},;:.@?]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Loading…
Reference in New Issue