aboutsummaryrefslogtreecommitdiff
path: root/grammars/go.bp
diff options
context:
space:
mode:
Diffstat (limited to 'grammars/go.bp')
-rw-r--r--grammars/go.bp3
1 files changed, 1 insertions, 2 deletions
diff --git a/grammars/go.bp b/grammars/go.bp
index 425325a..c9f7377 100644
--- a/grammars/go.bp
+++ b/grammars/go.bp
@@ -8,11 +8,10 @@
comment: "//" .. $ / "/*" ..%\n "*/"
string: `" ..%(`\.) `"
-keyword: |(
+keyword:
"break" / "default" / "func" / "interface" / "select" / "case" / "defer" / "go" /
"map" / "struct" / "chan" / "else" / "goto" / "package" / "switch" / "const" /
"fallthrough" / "if" / "range" / "type" / "continue" / "for" / "import" / "return" / "var"
-)|
function-def: {func} __ id __ parens __ [id / parens] >(__`{)
function: function-def __ braces
import: {import} __ (parens / string)