This commit is contained in:
Zachary Yedidia 2020-01-06 12:29:39 -05:00
commit 7c90f4d6f1
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