about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorChristian Theune <ct@flyingcircus.io>2016-01-04T23·53+0100
committerChristian Theune <ct@flyingcircus.io>2016-01-04T23·53+0100
commit494fc5acbb104371a80ca17bd9f1e35c3859ed27 (patch)
treeb5df3cc67a6e63620fb3dfe7cd06204f1d1e3d7e /src/libexpr
parent14ebde52893263930cdcde1406cc91cc5c42556f (diff)
Try a simplified version of float lexing that didn't work.
The last one I tried was botchered anyway ...
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index 8f9d686a1c89..158ca915266f 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       {INT}[0-9]+\.[0-9]+[eE]-?{INT}
+FLOAT       {INT}\.{INT}
 PATH        [a-zA-Z0-9\.\_\-\+]*(\/[a-zA-Z0-9\.\_\-\+]+)+
 HPATH       \~(\/[a-zA-Z0-9\.\_\-\+]+)+
 SPATH       \<[a-zA-Z0-9\.\_\-\+]+(\/[a-zA-Z0-9\.\_\-\+]+)*\>