diff --git a/.gitignore b/.gitignore index 67dfeb3..b512c09 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -node_modules -*.vsix \ No newline at end of file +node_modules \ No newline at end of file diff --git a/README.md b/README.md index 2117712..ee56170 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,8 @@ vsce package npm install -g yo generator-code yo code # select New Language Support -``` \ No newline at end of file +``` + +## Reference + +https://github.com/jakoberzar/vscode-llvm-tablegen \ No newline at end of file diff --git a/mlir-tablegen-0.0.2.vsix b/mlir-tablegen-0.0.2.vsix new file mode 100644 index 0000000..c6fe0e7 Binary files /dev/null and b/mlir-tablegen-0.0.2.vsix differ diff --git a/package.json b/package.json index c361983..ec8b5a9 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/syntaxes/inc.tmLanguage b/syntaxes/inc.tmLanguage.json similarity index 99% rename from syntaxes/inc.tmLanguage rename to syntaxes/inc.tmLanguage.json index fef62fa..f61bb8b 100644 --- a/syntaxes/inc.tmLanguage +++ b/syntaxes/inc.tmLanguage.json @@ -6,9 +6,9 @@ ], "version": "", "name": "inc", - "scopeName": "source.cpp", + "scopeName": "source.inc", "fileTypes": [ - "inc", + "inc" ], "patterns": [ {