diff options
| author | 2026-02-21 18:12:46 +0300 | |
|---|---|---|
| committer | 2026-02-21 18:12:46 +0300 | |
| commit | f3862264e0e779d3f9cfa727971bc6c59118291a (patch) | |
| tree | c81e33c47e0a9ecff90336682aa30da6364907af /config.ebnf | |
| parent | v0.0.1 (diff) | |
| download | conf-0.0.2.tar.gz conf-0.0.2.tar.bz2 conf-0.0.2.tar.xz conf-0.0.2.zip | |
Сделал $ разрешенным символом в словахv0.0.2
Diffstat (limited to '')
| -rw-r--r-- | config.ebnf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config.ebnf b/config.ebnf index 965c5c7..51c1db7 100644 --- a/config.ebnf +++ b/config.ebnf @@ -18,7 +18,9 @@ Boolean = boolean . String = str . # Primitives -word = `[a-zA-Z_][a-zA-Z0-9_]*` . +word = (alpha | spec) {alpha | number | spec} . +alpha = `[a-zA-Z]` . +spec = `\$|_` . number = `-?[0-9]+(\.[0-9]+)?` . boolean = `true|false` . str = `"[^"]*"` | `'[^']*'` | '`' { `[^\x60]` } '`' . |
