mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 14:20:29 +00:00
[TableGen] Update editor modes for new keywords.
Summary: D71407 and D71474 added new keywords to the Tablegen language: `defvar`, `if`, `then` and `else`. This commit updates the various editor modes to highlight them appropriately. Some of the modes also didn't include `defset`, so I've added that too while I was there. Reviewers: MaskRay, lebedev.ri, plotfi Reviewed By: lebedev.ri Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D72693
This commit is contained in:
parent
70746136b2
commit
87e348953e
@ -18,7 +18,8 @@
|
||||
|
||||
(defvar tablegen-font-lock-keywords
|
||||
(let ((kw (regexp-opt '("class" "defm" "def" "field" "include" "in"
|
||||
"let" "multiclass" "foreach")
|
||||
"let" "multiclass" "foreach" "if" "then" "else"
|
||||
"defvar" "defset")
|
||||
'words))
|
||||
(type-kw (regexp-opt '("bit" "bits" "code" "dag" "int" "list" "string")
|
||||
'words))
|
||||
|
@ -5,6 +5,9 @@
|
||||
<list name="keywords">
|
||||
<item> foreach </item>
|
||||
<item> field </item>
|
||||
<item> if </item>
|
||||
<item> then </item>
|
||||
<item> else </item>
|
||||
</list>
|
||||
<list name="operator-keywords">
|
||||
<item> in </item>
|
||||
@ -45,6 +48,7 @@
|
||||
<item> defm </item>
|
||||
<item> defset </item>
|
||||
<item> let </item>
|
||||
<item> defvar </item>
|
||||
<item> multiclass </item>
|
||||
</list>
|
||||
<list name="class-like">
|
||||
|
@ -14,7 +14,7 @@ syntax sync minlines=100
|
||||
|
||||
syn case match
|
||||
|
||||
syn keyword tgKeyword def let in code dag field include defm foreach
|
||||
syn keyword tgKeyword def let in code dag field include defm foreach defset defvar if then else
|
||||
syn keyword tgType class int string list bit bits multiclass
|
||||
|
||||
syn match tgNumber /\<\d\+\>/
|
||||
|
@ -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|defvar|defset|if|then|else)\b</string>
|
||||
<key>name</key>
|
||||
<string>keyword.control.tablegen</string>
|
||||
</dict>
|
||||
|
Loading…
Reference in New Issue
Block a user