diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-11 12:38:58 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-11 12:38:58 -0700 |
| commit | a93220972f8130732c8cd0267c0b14db77ac19ea (patch) | |
| tree | d1141bfdcded68c8b51d9ed6a735aea5134ab4c8 /grammars/go.bp | |
| parent | 3359a804c8fe02ea4e9bc1abb7430109affdd535 (diff) | |
Overhaul of |-word boundaries (| is deprecated), performance
improvements for repeating matches, tweaks to the logic of word vs. id
Diffstat (limited to 'grammars/go.bp')
| -rw-r--r-- | grammars/go.bp | 3 |
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) |
