aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Theune <ct@flyingcircus.io>2016-01-05 00:53:22 +0100
committerChristian Theune <ct@flyingcircus.io>2016-01-05 00:53:22 +0100
commit494fc5acbb104371a80ca17bd9f1e35c3859ed27 (patch)
treeb5df3cc67a6e63620fb3dfe7cd06204f1d1e3d7e /src
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')
-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 8f9d686a1..158ca9152 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\.\_\-\+]+)*\>