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
## [0.0.2] - 2020-04-16
- Added support for integers, code fragments and some new keywords.
## [0.0.1] - 2018-04-27
- Initial release, featuring simple syntax highlighting.

View File

@ -2,7 +2,7 @@
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

View File

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

View File

@ -18,7 +18,7 @@
</dict>
<dict>
<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>
<string>keyword.control.tablegen</string>
</dict>
@ -39,6 +39,32 @@
</dict>
</array>
</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>
<key>repository</key>
<dict>