[PATCH] [emacs] fix parens, font-lock i* in llvm-mode
Ramkumar Ramachandra
artagnon at gmail.com
Fri Jan 23 11:47:12 PST 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7036
Files:
llvm/trunk/utils/emacs/llvm-mode.el
Index: llvm/trunk/utils/emacs/llvm-mode.el
===================================================================
--- llvm/trunk/utils/emacs/llvm-mode.el
+++ llvm/trunk/utils/emacs/llvm-mode.el
@@ -23,7 +23,7 @@
;; Unnamed variable slots
'("%[-]?[0-9]+" . font-lock-variable-name-face)
;; Types
- `(,(regexp-opt '("void" "i[0-9]+" "float" "double" "type" "label" "opaque") 'words) . font-lock-type-face)
+ `(,(regexp-opt '("void" "i1" "i8" "i16" "i32" "i64" "i128" "float" "double" "type" "label" "opaque") 'words) . font-lock-type-face)
;; Integer literals
'("\\b[-]?[0-9]+\\b" . font-lock-preprocessor-face)
;; Floating point constants
@@ -83,7 +83,7 @@
;; word constituents (`w')
;;[?< "w"]
;;[?> "w"]
- [?\% "w"]
+ [?% "w"]
;;[?_ "w "]
;; comments
[?\; "< "]
@@ -93,16 +93,9 @@
;; symbol constituents (`_')
;; punctuation (`.')
;; open paren (`(')
- [?\( "("]
- [?\[ "("]
- [?\{ "("]
;; close paren (`)')
- [?\) ")"]
- [?\] ")"]
- [?\} ")"]
;; string quote ('"')
- [?\" "\""]
- ))))
+ [?\" "\""]))))
;; --------------------- Abbrev table -----------------------------
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7036.18686.patch
Type: text/x-patch
Size: 1417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/7f467c7d/attachment.bin>
More information about the llvm-commits
mailing list