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

3
.gitignore vendored
View File

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

View File

@ -23,4 +23,8 @@ vsce package
npm install -g yo generator-code
yo code
# 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",
"displayName": "LLVM TableGen",
"name": "mlir-tablegen",
"displayName": "MLIR TableGen",
"description": "Syntax highlighting for TableGen.",
"version": "0.0.2",
"publisher": "colin-liang",
@ -11,35 +11,50 @@
"Programming Languages"
],
"keywords": [
"llvm-tablegen",
"llvm-tblgen",
"mlir-tablegen",
"mlir-tblgen",
"tblgen",
"llvm",
"tablegen"
],
"contributes": {
"languages": [{
"id": "tablegen",
"aliases": ["TableGen", "tblgen", "tablegen"],
"extensions": [".td"],
"configuration": "./language-configuration.json"
},
{
"id": "inc",
"aliases": ["inc", "tblgen", "TableGen", "tblgen", "tablegen"],
"extensions": [".inc"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "tablegen",
"scopeName": "source.tablegen",
"path": "./syntaxes/tablegen.tmLanguage"
},
{
"language": "inc",
"scopeName": "source.tablegen",
"path": "./syntaxes/inc.tmLanguage"
}]
"languages": [
{
"id": "inc",
"aliases": [
"inc",
"inc"
],
"extensions": [
".inc"
],
"configuration": "./language-configuration.json"
},
{
"id": "tablegen",
"aliases": [
"TableGen",
"tblgen",
"tablegen"
],
"extensions": [
".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": {
"url": "http://deve.work:3000/colin/vscode-llvm-tablegen"

View File

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