aboutsummaryrefslogtreecommitdiff
path: root/utils/emacs/tablegen-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'utils/emacs/tablegen-mode.el')
-rw-r--r--utils/emacs/tablegen-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/emacs/tablegen-mode.el b/utils/emacs/tablegen-mode.el
index fdf8b3f444..08f7f252c6 100644
--- a/utils/emacs/tablegen-mode.el
+++ b/utils/emacs/tablegen-mode.el
@@ -26,13 +26,13 @@
;; Strings
'("\"[^\"]+\"" . font-lock-string-face)
;; Hex constants
- '("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face)
+ '("\\<0x[0-9A-Fa-f]+\\>" . font-lock-preprocessor-face)
;; Binary constants
- '("0b[01]+" . font-lock-preprocessor-face)
+ '("\\<0b[01]+\\>" . font-lock-preprocessor-face)
;; Integer literals
- '("[-]?[0-9]+" . font-lock-preprocessor-face)
+ '("\\<[-]?[0-9]+\\>" . font-lock-preprocessor-face)
;; Floating point constants
- '("[-+]?[0-9]+\.[0-9]*\([eE][-+]?[0-9]+\)?" . font-lock-preprocessor-face)
+ '("\\<[-+]?[0-9]+\.[0-9]*\([eE][-+]?[0-9]+\)?\\>" . font-lock-preprocessor-face)
'("^[ \t]*\\(@.+\\)" 1 'td-decorators-face)
;; Keywords