mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
More llvm highlighting things
This commit is contained in:
parent
ed12d6cb7b
commit
41682a9f87
1 changed files with 10 additions and 2 deletions
|
|
@ -104,10 +104,18 @@
|
|||
`(,(rx "$" (+ alphanumeric)) . font-lock-variable-name-face))
|
||||
|
||||
(add-to-list 'llvm-font-lock-keywords
|
||||
`(,(rx (or "renamable" "implicit-def" "implicit" "debug-location")) . 'shadow))
|
||||
`(,(rx (or "renamable" "implicit-def" "implicit" "debug-location" "nsw" "align")) . 'shadow))
|
||||
|
||||
(add-to-list 'llvm-font-lock-keywords
|
||||
`(,(rx "!" (+ digit)) . 'font-lock-variable-name-face))
|
||||
`(,(rx "!" (+ alphanumeric)) . 'font-lock-variable-name-face))
|
||||
|
||||
(-->
|
||||
"\\b[-]?[0-9]+\\b"
|
||||
(assoc it llvm-font-lock-keywords)
|
||||
(cl-position it llvm-font-lock-keywords)
|
||||
(nth it llvm-font-lock-keywords)
|
||||
(setf it
|
||||
`(,(rx word-boundary (optional "-") ))))
|
||||
|
||||
;; (pop llvm-font-lock-keywords)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue