llvm.org GIT mirror llvm / a917380
'Previously, the emacs tablegen mode would highlight constants even if they appear in words. This would cause things like the "128" in "VR128" to be highlighted. This patch fixes the highlighting by only recognizing constants when they have word breaks around them.' Patch by Stefanus Du Toit! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53944 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2525 ;; Strings
2626 '("\"[^\"]+\"" . font-lock-string-face)
2727 ;; Hex constants
28 '("0x[0-9A-Fa-f]+" . font-lock-preprocessor-face)
28 '("\\<0x[0-9A-Fa-f]+\\>" . font-lock-preprocessor-face)
2929 ;; Binary constants
30 '("0b[01]+" . font-lock-preprocessor-face)
30 '("\\<0b[01]+\\>" . font-lock-preprocessor-face)
3131 ;; Integer literals
32 '("[-]?[0-9]+" . font-lock-preprocessor-face)
32 '("\\<[-]?[0-9]+\\>" . font-lock-preprocessor-face)
3333 ;; Floating point constants
34 '("[-+]?[0-9]+\.[0-9]*\([eE][-+]?[0-9]+\)?" . font-lock-preprocessor-face)
34 '("\\<[-+]?[0-9]+\.[0-9]*\([eE][-+]?[0-9]+\)?\\>" . font-lock-preprocessor-face)
3535
3636 '("^[ \t]*\\(@.+\\)" 1 'td-decorators-face)
3737 ;; Keywords