diff --git a/package.json b/package.json index 68ce459..ef0e0b0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publisher": "kcl", "displayName": "KCL", "description": "Language extension for KCL", - "version": "0.1.2", + "version": "0.1.4", "engines": { "vscode": "^1.63.0" }, diff --git a/src/extension.ts b/src/extension.ts index 19d8ed3..456d102 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -127,6 +127,7 @@ function autoCompletionItems(): vscode.CompletionItem[] { {label: 'False', text: 'False'}, {label: 'None', text: 'None'}, {label: 'Undefined', text: 'Undefined'}, + {label: 'type', text: 'type'}, ]; const BuiltinFunctionsCompletions: {label: string, text: string, doc: string}[] = [ diff --git a/syntaxes/KCL.tmLanguage.json b/syntaxes/KCL.tmLanguage.json index 6eab43f..053ef35 100644 --- a/syntaxes/KCL.tmLanguage.json +++ b/syntaxes/KCL.tmLanguage.json @@ -28,7 +28,7 @@ "keywords": { "patterns": [{ "name": "keyword.control.KCL", - "match": "\\b(as|assert|if|elif|else|lambda|for|import|schema|protocol|rule|mixin|check|and|in|is|not|or|all|any|map|filter)\\b" + "match": "\\b(as|assert|if|elif|else|lambda|for|import|schema|protocol|rule|mixin|check|and|in|is|not|or|all|any|map|filter|type)\\b" }] }, "types": {