diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
| commit | 994c9c973e0fd771699c3a5c76bee11f9b744c84 (patch) | |
| tree | 8257c1abe2d18a50a46a1d712eadbd25fd7e4f8b /grammars/rust.bp | |
| parent | cb9b4c40d87480bc794b90c2a36ed0f4c3240d8a (diff) | |
Changed how definitions work
Diffstat (limited to 'grammars/rust.bp')
| -rw-r--r-- | grammars/rust.bp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/grammars/rust.bp b/grammars/rust.bp index 4df6b53..9ac459b 100644 --- a/grammars/rust.bp +++ b/grammars/rust.bp @@ -8,11 +8,10 @@ comment: "//" .. $ / "/*" ..%(comment / \n) "*/" string: `" ..%string-escape `" -keyword: - "as" / "break" / "const" / "continue" / "crate" / "else" / "enum" / "extern" / +keyword: ("as" / "break" / "const" / "continue" / "crate" / "else" / "enum" / "extern" / "false" / "fn" / "for" / "if" / "impl" / "in" / "let" / "loop" / "match" / "mod" / "move" / "mut" / "pub" / "ref" / "return" / "self" / "Self" / "static" / - "struct" / "super" / "trait" / "true" / "type" / "unsafe" / "use" / "where" / "while" + "struct" / "super" / "trait" / "true" / "type" / "unsafe" / "use" / "where" / "while") function-def: |"fn"| __ id __ parens __ ["->"__(id / parens)] >(__`{) function: function-def __ braces import: |"use"| _ *(id / braces) % "::" _ `; |
