From b6f44b18d89f8dae5dd00791d42504d37a2e9907 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 5 Jul 2018 00:18:08 +0100 Subject: [PATCH] el/dot-emacs.el: Fix the Rust keywords. I'd missed out `proc' and `Self', duplicated `false' (but not `true') in the two lists. Add the missing keywords; mark both `true' and `false' as builtins, as well as `self' and `Self'. --- el/dot-emacs.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 78a456b..1c484e6 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2640,15 +2640,15 @@ name, as a symbol." "const" "continue" "create" "do" "else" "enum" "extern" - "false" "final" "fn" "for" + "final" "fn" "for" "if" "impl" "in" "let" "loop" "macro" "match" "mod" "move" "mut" "offsetof" "override" - "priv" "pub" "pure" + "priv" "proc" "pub" "pure" "ref" "return" - "self" "sizeof" "static" "struct" "super" - "true" "trait" "type" "typeof" + "sizeof" "static" "struct" "super" + "trait" "type" "typeof" "unsafe" "unsized" "use" "virtual" "where" "while" @@ -2659,7 +2659,8 @@ name, as a symbol." "f32" "f64" "i8" "i16" "i32" "i64" "isize" "u8" "u16" "u32" "u64" "usize" - "char" "str"))) + "char" "str" + "self" "Self"))) (setq font-lock-keywords (list -- 2.11.0