Add golang keywords (#1455)

* Add golang keywords

* Update runtime
This commit is contained in:
Serge Voilokov
2020-01-06 12:06:44 -05:00
committed by Zachary Yedidia
parent 6a465500bc
commit 8d373cde6e
2 changed files with 33 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@@ -5,9 +5,9 @@ detect:
rules:
# Conditionals and control flow
- special: "\\b(break|case|continue|default|go|goto|range|return)\\b"
- statement: "\\b(else|for|if|switch)\\b"
- preproc: "\\b(package|import|const|var|type|struct|func|go|defer|iota)\\b"
- special: "\\b(break|case|continue|default|go|goto|range|return|println|fallthrough)\\b"
- statement: "\\b(else|for|if|switch|select)\\b"
- preproc: "\\b(package|import|const|var|type|struct|func|defer|iota|make|new|copy|len|cap|panic|append|close|delete|print|recover)\\b"
- symbol.operator: "[-+/*=<>!~%&|^]|:="
# Types