chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d190ff
)
el/dot-emacs.el (mdw-fontify-rust): Add new keywords from 2018 edition.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 16 Feb 2019 12:28:16 +0000
(12:28 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 16 Feb 2019 12:28:16 +0000
(12:28 +0000)
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index 7c933f3569946ec2b57d564cbbf7d1460ef54c70..24c2afafbdd9a0bb6092914c46dcf60225db1c3d 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-2655,10
+2655,10
@@
(defun mdw-fontify-rust ()
;; Fontify keywords and things.
(make-local-variable 'font-lock-keywords)
(let ((rust-keywords
;; Fontify keywords and things.
(make-local-variable 'font-lock-keywords)
(let ((rust-keywords
- (mdw-regexps "abstract" "alignof" "as"
+ (mdw-regexps "abstract" "alignof" "as"
"async" "await"
"become" "box" "break"
"const" "continue" "crate"
"become" "box" "break"
"const" "continue" "crate"
- "do"
+ "do"
"dyn"
"else" "enum" "extern"
"final" "fn" "for"
"if" "impl" "in"
"else" "enum" "extern"
"final" "fn" "for"
"if" "impl" "in"
@@
-2668,8
+2668,8
@@
(defun mdw-fontify-rust ()
"priv" "proc" "pub" "pure"
"ref" "return"
"sizeof" "static" "struct" "super"
"priv" "proc" "pub" "pure"
"ref" "return"
"sizeof" "static" "struct" "super"
- "trait" "type" "typeof"
- "unsafe" "unsized" "use"
+ "trait" "t
ry" "t
ype" "typeof"
+ "un
ion" "un
safe" "unsized" "use"
"virtual"
"where" "while"
"yield"))
"virtual"
"where" "while"
"yield"))