aboutsummaryrefslogtreecommitdiff
path: root/grammars/go.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-10 23:46:46 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-10 23:46:46 -0700
commit17dbe5d9e8fcbe2c5f2f494658868b28857a25ca (patch)
treeb5fafea0caac649ab93c273e1d81f476a13624fc /grammars/go.bp
parent943aa0b71a8c2a03fe4b57317d4c7bc7df7d014c (diff)
Added {word} feature and cleaned up the code some.
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 01f983f..425325a 100644
--- a/grammars/go.bp
+++ b/grammars/go.bp
@@ -13,6 +13,6 @@ keyword: |(
"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: {func} __ id __ parens __ [id / parens] >(__`{)
function: function-def __ braces
-import: |"import"| __ (parens / string)
+import: {import} __ (parens / string)