1
0
Fork 0

Do not allow whitespaces in property

This commit is contained in:
Daniele Tricoli 2018-11-17 01:04:33 +01:00
parent 5321555777
commit 8d3c23f26b
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
// A simplyfied parser for zeroc configuration.
// This parser is stricter of the default one, for example spaces in properties
// are not allowed.
// See https://doc.zeroc.com/ice/latest/properties-and-configuration for
// details.
// details about zeroc configuration.
CHAR = { ASCII_ALPHANUMERIC | "." | "_" | WHITESPACE }
CHAR = { ASCII_ALPHANUMERIC | "." | "_" }
NO_NEWLINE = _{ !NEWLINE ~ ANY }
WHITESPACE = _{ " " }
SEPARATOR = _{ "=" }
NAME = @{ CHAR+ }