Add support for integers, code fragments and some newer keywords. Closes #1

This commit is contained in:
Jakob Erzar 2020-04-16 21:21:58 +02:00
parent 43e046d6b1
commit 5d957734af
4 changed files with 33 additions and 4 deletions

View File

@ -1,4 +1,7 @@
# Change Log # Change Log
## [0.0.2] - 2020-04-16
- Added support for integers, code fragments and some new keywords.
## [0.0.1] - 2018-04-27 ## [0.0.1] - 2018-04-27
- Initial release, featuring simple syntax highlighting. - Initial release, featuring simple syntax highlighting.

View File

@ -2,7 +2,7 @@
Simple syntax highlighting support for the LLVM TableGen language. Simple syntax highlighting support for the LLVM TableGen language.
TextMate grammar used was taken from the official [LLVM repository](https://github.com/llvm-mirror/llvm/blob/master/utils/textmate/TableGen.tmbundle/Syntaxes/TableGen.tmLanguage). 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 ## Features

View File

@ -2,13 +2,13 @@
"name": "llvm-tablegen", "name": "llvm-tablegen",
"displayName": "LLVM TableGen", "displayName": "LLVM TableGen",
"description": "Syntax highlighting for TableGen.", "description": "Syntax highlighting for TableGen.",
"version": "0.0.1", "version": "0.0.2",
"publisher": "jakob-erzar", "publisher": "jakob-erzar",
"engines": { "engines": {
"vscode": "^1.22.0" "vscode": "^1.22.0"
}, },
"categories": [ "categories": [
"Languages" "Programming Languages"
], ],
"keywords": [ "keywords": [
"llvm-tablegen", "llvm-tablegen",

View File

@ -18,7 +18,7 @@
</dict> </dict>
<dict> <dict>
<key>match</key> <key>match</key>
<string>\b(def|let|in|code|dag|string|list|bits|bit|field|include|defm|foreach|class|multiclass|int)\b</string> <string>\b(def|let|in|code|dag|string|list|bits|bit|field|include|defm|foreach|class|multiclass|int|if|then|else|defset|defvar)\b</string>
<key>name</key> <key>name</key>
<string>keyword.control.tablegen</string> <string>keyword.control.tablegen</string>
</dict> </dict>
@ -39,6 +39,32 @@
</dict> </dict>
</array> </array>
</dict> </dict>
<dict>
<key>begin</key>
<string>\[{</string>
<key>end</key>
<string>}]</string>
<key>name</key>
<string>string.unquoted.tablegen</string>
</dict>
<dict>
<key>match</key>
<string>\b\d+\b</string>
<key>name</key>
<string>constant.numeric.dec.llvm</string>
</dict>
<dict>
<key>match</key>
<string>\b0b[01]+\b</string>
<key>name</key>
<string>constant.numeric.bin.llvm</string>
</dict>
<dict>
<key>match</key>
<string>\b0x[0-9a-fA-F]+\b</string>
<key>name</key>
<string>constant.numeric.hex.llvm</string>
</dict>
</array> </array>
<key>repository</key> <key>repository</key>
<dict> <dict>