Skip to content

Commit

Permalink
feat: add keyword type
Browse files Browse the repository at this point in the history
  • Loading branch information
He1pa committed Feb 2, 2024
1 parent 748b953 commit 6609f49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publisher": "kcl",
"displayName": "KCL",
"description": "Language extension for KCL",
"version": "0.1.0",
"version": "0.1.4",
"engines": {
"vscode": "^1.63.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function autoCompletionItems(): vscode.CompletionItem[] {
{label: 'False', text: 'False'},
{label: 'None', text: 'None'},
{label: 'Undefined', text: 'Undefined'},
{label: 'type', text: 'type'},
];

return [
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/KCL.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 6609f49

Please sign in to comment.