branch: master
commit 63fdb9696514a77009b24c6f723e55c57017b952
Author: chunzhouyu <[email protected]>
Commit: chunzhouyu <[email protected]>
add some golang fake keywords for a better programming experience
---
company-keywords.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/company-keywords.el b/company-keywords.el
index 52fc226..c751190 100644
--- a/company-keywords.el
+++ b/company-keywords.el
@@ -145,7 +145,14 @@
;; 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")
+ "return" "select" "struct" "switch" "type" "var"
+ ;; basic type keywords, from https://golang.org/pkg/go/types/
+ "bool"
+ "int" "int8" "int16" "int32" "int64"
+ "uint" "uint8" "uint16" "uint32" "uint64" "uintptr"
+ "float32" "float64"
+ "complex64" "complex128"
+ "string")
(java-mode
"abstract" "assert" "boolean" "break" "byte" "case" "catch" "char" "class"
"continue" "default" "do" "double" "else" "enum" "extends" "final"