diff options
author | Simon Tatham <simon.tatham@arm.com> | 2020-01-14 13:12:16 +0000 |
---|---|---|
committer | Simon Tatham <simon.tatham@arm.com> | 2020-01-14 13:39:00 +0000 |
commit | e3ed63e83ab6194aaf6711b97bdf09f16dcf2401 (patch) | |
tree | bd1bfdc4b91d17b802d51a4f379a8f3c76e89e44 /llvm/utils/emacs | |
parent | 3f944a8b8ca895667f04748f62d350f07ee1416b (diff) | |
download | bcm5719-llvm-e3ed63e83ab6194aaf6711b97bdf09f16dcf2401.tar.gz bcm5719-llvm-e3ed63e83ab6194aaf6711b97bdf09f16dcf2401.zip |
[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
Diffstat (limited to 'llvm/utils/emacs')
-rw-r--r-- | llvm/utils/emacs/tablegen-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/emacs/tablegen-mode.el b/llvm/utils/emacs/tablegen-mode.el index a5da0fdac5a..572823fa56e 100644 --- a/llvm/utils/emacs/tablegen-mode.el +++ b/llvm/utils/emacs/tablegen-mode.el @@ -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)) |