el/dot-emacs.el (mdw-fontify-rust): Add new keywords from 2018 edition.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 16 Feb 2019 12:28:16 +0000 (12:28 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 16 Feb 2019 12:28:16 +0000 (12:28 +0000)
el/dot-emacs.el

index 7c933f3..24c2afa 100644 (file)
@@ -2655,10 +2655,10 @@ name, as a symbol."
   ;; 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 @@ name, as a symbol."
                      "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"))