branch: master
commit 1c288318276771a67b11c503885600160d75b901
Author: Franky <[email protected]>
Commit: GitHub <[email protected]>
add some golang's builtin funcitons to go-mode
---
company-keywords.el | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/company-keywords.el b/company-keywords.el
index e321c17..2d10c6e 100644
--- a/company-keywords.el
+++ b/company-keywords.el
@@ -142,14 +142,18 @@
"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
- ;; Plus some basic types, for better programming experience.
- "bool" "break" "case" "chan" "complex128" "complex64" "const" "continue"
- "default" "defer" "else" "fallthrough" "float32" "float64"
- "for" "func" "go" "goto" "if" "import" "int" "int16" "int32"
- "int64" "int8" "interface" "map" "package" "range"
- "return" "select" "string" "struct" "switch" "type"
- "uint" "uint16" "uint32" "uint64" "uint8" "uintptr" "var")
+ ;; Basic 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"
+
+ ;; Plus some basic types
+ "bool" "complex128" "complex64" "float32" "float64" "int" "int16" "int32"
+ "int64" "int8" "string" "uint" "uint16" "uint32" "uint64" "uint8"
"uintptr"
+
+ ;; Plus golang's builtin functions
+ "append" "cap" "close" "complex" "copy" "delete" "imag" "len" "make" "new"
+ "panic" "print" "println" "real" "recover")
(java-mode
"abstract" "assert" "boolean" "break" "byte" "case" "catch" "char" "class"
"continue" "default" "do" "double" "else" "enum" "extends" "final"