fix ,and add vsix

This commit is contained in:
Colin 2020-08-09 15:47:04 +08:00
parent dd78036edb
commit dfa6433952
5 changed files with 49 additions and 31 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
node_modules node_modules
*.vsix

View File

@ -24,3 +24,7 @@ npm install -g yo generator-code
yo code yo code
# select New Language Support # select New Language Support
``` ```
## Reference
https://github.com/jakoberzar/vscode-llvm-tablegen

BIN
mlir-tablegen-0.0.2.vsix Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
{ {
"name": "llvm-tablegen", "name": "mlir-tablegen",
"displayName": "LLVM TableGen", "displayName": "MLIR TableGen",
"description": "Syntax highlighting for TableGen.", "description": "Syntax highlighting for TableGen.",
"version": "0.0.2", "version": "0.0.2",
"publisher": "colin-liang", "publisher": "colin-liang",
@ -11,35 +11,50 @@
"Programming Languages" "Programming Languages"
], ],
"keywords": [ "keywords": [
"llvm-tablegen", "mlir-tablegen",
"llvm-tblgen", "mlir-tblgen",
"tblgen", "tblgen",
"llvm", "llvm",
"tablegen" "tablegen"
], ],
"contributes": { "contributes": {
"languages": [{ "languages": [
"id": "tablegen", {
"aliases": ["TableGen", "tblgen", "tablegen"], "id": "inc",
"extensions": [".td"], "aliases": [
"configuration": "./language-configuration.json" "inc",
}, "inc"
{ ],
"id": "inc", "extensions": [
"aliases": ["inc", "tblgen", "TableGen", "tblgen", "tablegen"], ".inc"
"extensions": [".inc"], ],
"configuration": "./language-configuration.json" "configuration": "./language-configuration.json"
}], },
"grammars": [{ {
"language": "tablegen", "id": "tablegen",
"scopeName": "source.tablegen", "aliases": [
"path": "./syntaxes/tablegen.tmLanguage" "TableGen",
}, "tblgen",
{ "tablegen"
"language": "inc", ],
"scopeName": "source.tablegen", "extensions": [
"path": "./syntaxes/inc.tmLanguage" ".td"
}] ],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "inc",
"scopeName": "source.inc",
"path": "./syntaxes/inc.tmLanguage.json"
},
{
"language": "tablegen",
"scopeName": "source.tablegen",
"path": "./syntaxes/tablegen.tmLanguage"
}
]
}, },
"bugs": { "bugs": {
"url": "http://deve.work:3000/colin/vscode-llvm-tablegen" "url": "http://deve.work:3000/colin/vscode-llvm-tablegen"

View File

@ -6,9 +6,9 @@
], ],
"version": "", "version": "",
"name": "inc", "name": "inc",
"scopeName": "source.cpp", "scopeName": "source.inc",
"fileTypes": [ "fileTypes": [
"inc", "inc"
], ],
"patterns": [ "patterns": [
{ {