diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-20 16:46:14 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-20 16:46:14 -0700 |
| commit | ec1a3e08354d27742e89fd8437a5a1d39153c53e (patch) | |
| tree | b6d434441179ba090da89b83a34ad243ba9215a9 /grammars/builtins.bp | |
| parent | cd30e89042f820c7e6dc7c40890eb21ddf0cd94f (diff) | |
Fixes for char sets/ranges and cleanups
Diffstat (limited to 'grammars/builtins.bp')
| -rw-r--r-- | grammars/builtins.bp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/grammars/builtins.bp b/grammars/builtins.bp index cf642e2..888cc2c 100644 --- a/grammars/builtins.bp +++ b/grammars/builtins.bp @@ -17,8 +17,7 @@ braces: `{ ..%(\n/braces/string) `} parens: `( ..%(\n/parens/string) `) string: `" ..%string-escape `" / `' ..%string-escape `' string-escape: `\ (`x 2 Hex / 1-3 `0-7 / `u 1-4 Hex / .) -left-id-edge: ^ / <(\x00-x7f!~(^^id-char)) / <((\xc0-xdf \x80-xbf)!~(^^id-char)) - / <((\xe0-xef 2\x80-xbf)!~(^^id-char)) / <((\xf0-xf7 3\x80-xbf)!~(^^id-char)) +left-id-edge: !<id-char right-id-edge: !id-char id: left-id-edge !`0-9 !(keyword left-id-edge) +id-char id-char: `a-z,A-Z,_,0-9 |
