[core] Don't allow spaces between integer value and its suffix, was not deterministic

personal/stbuehler/wip
Thomas Porzelt 13 years ago
parent 048a7d9144
commit fc09bf9095
  1. 2
      src/main/config_parser.rl

@ -1134,7 +1134,7 @@
integer_suffix_bits = ( 'bit' | 'kbit' | 'mbit' | 'gbit' | 'tbit' | 'pbit' );
integer_suffix_seconds = ( 'sec' | 'min' | 'hours' | 'days' );
integer_suffix = ( integer_suffix_bytes | integer_suffix_bits | integer_suffix_seconds ) >mark %integer_suffix;
integer = ( ('0' | ( [1-9] [0-9]* )) %integer (ws? integer_suffix)? );
integer = ( ('0' | ( [1-9] [0-9]* )) %integer integer_suffix? );
escaped_hex = ( '\\x' xdigit{2} );
special_chars = ( '\\' [nrt\\] );
#string = ( '"' ( ( any - ["\\] ) | special_chars | escaped_hex | '\\"' )* '"' ) %string;

Loading…
Cancel
Save