Add inc support
This commit is contained in:
parent
abdd249971
commit
dd78036edb
18
README.md
18
README.md
|
@ -2,15 +2,25 @@
|
|||
|
||||
Simple syntax highlighting support for the LLVM TableGen language.
|
||||
|
||||
Add inc file syntax highlighting as c++.
|
||||
|
||||
TextMate grammar used is based on the one from the official [LLVM repository](https://github.com/llvm-mirror/llvm/blob/master/utils/textmate/TableGen.tmbundle/Syntaxes/TableGen.tmLanguage).
|
||||
|
||||
## Features
|
||||
|
||||
- Syntax highlighting
|
||||
|
||||
![Syntax highlighting](images/syntax.png)
|
||||
## Build
|
||||
|
||||
```c++
|
||||
npm install -g vsce
|
||||
yarn install
|
||||
vsce package
|
||||
```
|
||||
|
||||
## Known Issues
|
||||
|
||||
- Please report any issues or suggestions you find on [GitHub](https://github.com/jakoberzar/vscode-llvm-tablegen/issues).
|
||||
## Genarate Project
|
||||
```
|
||||
npm install -g yo generator-code
|
||||
yo code
|
||||
# select New Language Support
|
||||
```
|
19
package.json
19
package.json
|
@ -3,7 +3,7 @@
|
|||
"displayName": "LLVM TableGen",
|
||||
"description": "Syntax highlighting for TableGen.",
|
||||
"version": "0.0.2",
|
||||
"publisher": "jakob-erzar",
|
||||
"publisher": "colin-liang",
|
||||
"engines": {
|
||||
"vscode": "^1.22.0"
|
||||
},
|
||||
|
@ -23,19 +23,30 @@
|
|||
"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"
|
||||
}]
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jakoberzar/vscode-llvm-tablegen/issues"
|
||||
"url": "http://deve.work:3000/colin/vscode-llvm-tablegen"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jakoberzar/vscode-llvm-tablegen.git"
|
||||
"url": "http://deve.work:3000/colin/vscode-llvm-tablegen"
|
||||
},
|
||||
"homepage": "https://github.com/jakoberzar/vscode-llvm-tablegen/blob/master/README.md"
|
||||
"homepage": "http://deve.work:3000/colin/vscode-llvm-tablegen"
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,87 @@
|
|||
Arguments:
|
||||
/usr/local/Cellar/node/14.1.0/bin/node /usr/local/Cellar/yarn/1.22.4/libexec/bin/yarn.js add vcse
|
||||
|
||||
PATH:
|
||||
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
|
||||
|
||||
Yarn version:
|
||||
1.22.4
|
||||
|
||||
Node version:
|
||||
14.1.0
|
||||
|
||||
Platform:
|
||||
darwin x64
|
||||
|
||||
Trace:
|
||||
Error: https://registry.yarnpkg.com/vcse: Not found
|
||||
at Request.params.callback [as _callback] (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:66987:18)
|
||||
at Request.self.callback (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:140748:22)
|
||||
at Request.emit (events.js:315:20)
|
||||
at Request.<anonymous> (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:141720:10)
|
||||
at Request.emit (events.js:315:20)
|
||||
at IncomingMessage.<anonymous> (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:141642:12)
|
||||
at Object.onceWrapper (events.js:421:28)
|
||||
at IncomingMessage.emit (events.js:327:22)
|
||||
at endReadableNT (_stream_readable.js:1223:12)
|
||||
at processTicksAndRejections (internal/process/task_queues.js:84:21)
|
||||
|
||||
npm manifest:
|
||||
{
|
||||
"name": "llvm-tablegen",
|
||||
"displayName": "LLVM TableGen",
|
||||
"description": "Syntax highlighting for TableGen.",
|
||||
"version": "0.0.2",
|
||||
"publisher": "colin.liang",
|
||||
"engines": {
|
||||
"vscode": "^1.22.0"
|
||||
},
|
||||
"categories": [
|
||||
"Programming Languages"
|
||||
],
|
||||
"keywords": [
|
||||
"llvm-tablegen",
|
||||
"llvm-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"]
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "tablegen",
|
||||
"scopeName": "source.tablegen",
|
||||
"path": "./syntaxes/tablegen.tmLanguage"
|
||||
},
|
||||
{
|
||||
"language": "inc",
|
||||
"scopeName": "source.tablegen",
|
||||
"path": "./syntaxes/inc.tmLanguage"
|
||||
}]
|
||||
},
|
||||
"bugs": {
|
||||
"url": "http://deve.work:3000/colin/vscode-llvm-tablegen"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://deve.work:3000/colin/vscode-llvm-tablegen"
|
||||
},
|
||||
"homepage": "http://deve.work:3000/colin/vscode-llvm-tablegen"
|
||||
}
|
||||
|
||||
yarn manifest:
|
||||
No manifest
|
||||
|
||||
Lockfile:
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
Loading…
Reference in New Issue