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

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

[elpa] master 045b23a 38/66: move golang's keywords to the right place


From: Dmitry Gutov
Subject: [elpa] master 045b23a 38/66: move golang's keywords to the right place
Date: Mon, 5 Nov 2018 18:19:18 -0500 (EST)

branch: master
commit 045b23a2a9ca4d002d6f1b1e21b8cb1381935c60
Author: chunzhouyu <address@hidden>
Commit: chunzhouyu <address@hidden>

    move golang's keywords to the right place
---
 company-keywords.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/company-keywords.el b/company-keywords.el
index 2ba12fe..52fc226 100644
--- a/company-keywords.el
+++ b/company-keywords.el
@@ -141,6 +141,11 @@
       "sum_suffix" "system_clock" "tan" "tanh" "target" "template" "then"
       "tiny" "transfer" "transpose" "trim" "true" "type" "ubound" "unpack"
       "use" "value" "verify" "volatile" "wait" "where" "while" "with" "write"))
+    (go-mode
+     ;; from https://golang.org/ref/spec#Keywords
+     "break" "case" "chan" "const" "continue" "default" "defer" "else" 
"fallthrough"
+     "for" "func" "go" "goto" "if" "import" "interface" "map" "package" "range"
+     "return" "select" "struct" "switch" "type" "var")
     (java-mode
      "abstract" "assert" "boolean" "break" "byte" "case" "catch" "char" "class"
      "continue" "default" "do" "double" "else" "enum" "extends" "final"
@@ -224,10 +229,6 @@
      "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
-    (go-mode
-     "break" "case" "chan" "const" "continue" "default" "defer" "else" 
"fallthrough"
-     "for" "func" "go" "goto" "if" "import" "interface" "map" "package" "range"
-     "return" "select" "struct" "switch" "type" "var")
     (rust-mode
      "Self"
      "as" "box" "break" "const" "continue" "crate" "else" "enum" "extern"



reply via email to

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