diff options
author | Christian Theune <ct@flyingcircus.io> | 2016-01-05T08·54+0100 |
---|---|---|
committer | Christian Theune <ct@flyingcircus.io> | 2016-01-05T08·54+0100 |
commit | a12a43046b0d1b967f0ca31d0db7bff218250274 (patch) | |
tree | ab45a95587c4cfec76682fb37aa612a226058e98 /src/libexpr/lexer.l | |
parent | f872262e0818ae1000826cfca3ad17619f50b60c (diff) |
Edge condition: parser did not pick up floats starting exactly with 0.
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r-- | src/libexpr/lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l index 5fdcb25dd483..7a6e48215b34 100644 --- a/src/libexpr/lexer.l +++ b/src/libexpr/lexer.l @@ -85,7 +85,7 @@ static Expr * unescapeStr(SymbolTable & symbols, const char * s) ID [a-zA-Z\_][a-zA-Z0-9\_\'\-]* INT [0-9]+ -FLOAT (([1-9][0-9]*\.?[0-9]*)|(\.[0-9]+))([Ee][+-]?[0-9]+)? +FLOAT (([1-9][0-9]*\.[0-9]*)|(0?\.[0-9]+))([Ee][+-]?[0-9]+)? PATH [a-zA-Z0-9\.\_\-\+]*(\/[a-zA-Z0-9\.\_\-\+]+)+ HPATH \~(\/[a-zA-Z0-9\.\_\-\+]+)+ SPATH \<[a-zA-Z0-9\.\_\-\+]+(\/[a-zA-Z0-9\.\_\-\+]+)*\> |