aboutsummaryrefslogtreecommitdiff
path: root/grammars/go.bp
diff options
context:
space:
mode:
Diffstat (limited to 'grammars/go.bp')
-rw-r--r--grammars/go.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/go.bp b/grammars/go.bp
index 71114cf..f86f2eb 100644
--- a/grammars/go.bp
+++ b/grammars/go.bp
@@ -12,6 +12,6 @@ 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-def: \b"func"\b __ id __ parens __ [id / parens] >(__`{)
function: function-def __ braces
-import: {import} __ (parens / string)
+import: \b"import"\b __ (parens / string)