From: Mark Wooding Date: Sat, 16 Feb 2019 12:28:16 +0000 (+0000) Subject: el/dot-emacs.el (mdw-fontify-rust): Add new keywords from 2018 edition. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/87def30c773641959e14aedde43e4af6639f7d1f el/dot-emacs.el (mdw-fontify-rust): Add new keywords from 2018 edition. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 7c933f3..24c2afa 100644 --- 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 - (mdw-regexps "abstract" "alignof" "as" + (mdw-regexps "abstract" "alignof" "as" "async" "await" "become" "box" "break" "const" "continue" "crate" - "do" + "do" "dyn" "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" - "trait" "type" "typeof" - "unsafe" "unsized" "use" + "trait" "try" "type" "typeof" + "union" "unsafe" "unsized" "use" "virtual" "where" "while" "yield"))