[emacs] simplify and improve keyword highlighting in tablegen-mode.el
authorBob Haarman <llvm@inglorion.net>
Wed, 25 Sep 2019 18:16:02 +0000 (18:16 +0000)
committerBob Haarman <llvm@inglorion.net>
Wed, 25 Sep 2019 18:16:02 +0000 (18:16 +0000)
commit75c689f7c825b0a625a0864250df28085ac7810d
treefaa79beb43a76c1b6df13af334b879488b71a322
parentf6bc251274f39dee5d09f668a56922c88bd027d8
[emacs] simplify and improve keyword highlighting in tablegen-mode.el

Summary:
The keyword and type keyword matchers in tablegen-mode.el checked
for space, newline, tab, or open paren after the regular expression
that matches keywords (or type keywords, respectively). This is
unnecessary, because those regular expressions already include word
boundaries. This change removes the extra check. This also causes
"def" in "def:" to be highlighted as a keyword, which was missed
before.

Reviewers: lattner, MaskRay

Reviewed By: MaskRay

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68002

llvm-svn: 372904
llvm/utils/emacs/tablegen-mode.el