diff --git a/language-configuration.json b/language-configuration.json index f799a1d..1d39b91 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -2,8 +2,6 @@ "comments": { // symbol used for single line comment. Remove this entry if your language does not support line comments "lineComment": "#", - // symbols used for start and end a block comment. Remove this entry if your language does not support block comments - "blockComment": [ "\"\"\"", "\"\"\"" ] }, // symbols used as brackets "brackets": [ @@ -18,7 +16,7 @@ ["(", ")"], ["\"", "\""], ["'", "'"], - ["\"\"\", \"\"\""], + ["\"\"\"", "\"\"\""], ["'''", "'''"] ], // symbols that can be used to surround a selection @@ -28,7 +26,7 @@ ["(", ")"], ["\"", "\""], ["'", "'"], - ["\"\"\", \"\"\""], + ["\"\"\"", "\"\"\""], ["'''", "'''"] ], "folding": { diff --git a/package.json b/package.json index 2403362..0788946 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publisher": "kcl", "displayName": "KCL", "description": "Language extension for KCL", - "version": "0.1.8", + "version": "0.1.9", "engines": { "vscode": "^1.63.0" }, diff --git a/syntaxes/KCL.tmLanguage.json b/syntaxes/KCL.tmLanguage.json index 053ef35..0eef957 100644 --- a/syntaxes/KCL.tmLanguage.json +++ b/syntaxes/KCL.tmLanguage.json @@ -11,6 +11,12 @@ { "include": "#builtin-literals" }, + { + "include": "#triple-double-quoted-strings" + }, + { + "include": "#triple-single-quoted-strings" + }, { "include": "#single-quoted-strings" }, @@ -43,27 +49,25 @@ "match": "\\b(True|False|None|Undefined)\\b" }] }, + "triple-double-quoted-strings": { + "name": "string.quoted.double.triple.KCL", + "begin": "\"\"\"", + "end": "\"\"\"" + }, + "triple-single-quoted-strings": { + "name": "string.quoted.single.triple.KCL", + "begin": "'''", + "end": "'''" + }, "single-quoted-strings": { "name": "string.quoted.single.KCL", "begin": "'", - "end": "'", - "patterns": [ - { - "name": "constant.character.escape.KCL", - "match": "\\\\." - } - ] + "end": "'" }, "double-quoted-strings": { "name": "string.quoted.double.KCL", "begin": "\"", - "end": "\"", - "patterns": [ - { - "name": "constant.character.escape.KCL", - "match": "\\\\." - } - ] + "end": "\"" }, "comment": { "name": "comment.line.number-sign.KCL",