emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master fc39277 15/23: Add keywords for rust-mode to company-keywo


From: Dmitry Gutov
Subject: [elpa] master fc39277 15/23: Add keywords for rust-mode to company-keywords.
Date: Fri, 11 Nov 2016 22:21:42 +0000 (UTC)

branch: master
commit fc39277d820c5917a08affaf9ad2435dc3c7938e
Author: Wilfred Hughes <address@hidden>
Commit: Wilfred Hughes <address@hidden>

    Add keywords for rust-mode to company-keywords.
---
 company-keywords.el |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/company-keywords.el b/company-keywords.el
index e59eaa2..8517b19 100644
--- a/company-keywords.el
+++ b/company-keywords.el
@@ -210,6 +210,13 @@
      "do" "else" "elsif"  "end" "ensure" "false" "for" "if" "in" "module"
      "next" "nil" "not" "or" "redo" "rescue" "retry" "return" "self" "super"
      "then" "true" "undef" "unless" "until" "when" "while" "yield")
+    ;; From https://doc.rust-lang.org/grammar.html#keywords
+    ;; but excluding unused reserved words: 
https://www.reddit.com/r/rust/comments/34fq0k/is_there_a_good_list_of_rusts_keywords/cqucvnj
+    (rust-mode
+     "as" "box" "break" "const" "continue" "crate" "else" "enum" "extern"
+     "false" "fn" "for" "if" "impl" "in" "let" "loop" "macro" "match" "mod"
+     "move" "mut" "pub" "ref" "return" "Self" "self" "static" "struct" "super"
+     "trait" "true" "type" "unsafe" "use" "where" "while")
     (scala-mode
      "abstract" "case" "catch" "class" "def" "do" "else" "extends" "false"
      "final" "finally" "for" "forSome" "if" "implicit" "import" "lazy" "match"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]