summaryrefslogtreecommitdiff
path: root/lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'lex.l')
-rw-r--r--lex.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/lex.l b/lex.l
index 432ad53..62080b3 100644
--- a/lex.l
+++ b/lex.l
@@ -23,8 +23,8 @@ char *str_value(char *s) {
%}
-ID [-A-Za-z_+*!/][-A-Za-z0-9_+*!]*
-STRING ["][^"]*["]
+ID [-A-Za-z_+*!/.][-A-Za-z0-9_+*!.]*
+STRING ["][^"]*["]|['][^']*[']
FLOAT [+-]?([0-9]+[.][0-9]*([Ee][+-]?[0-9]+)?|[.][0-9]+([Ee][+-]?[0-9]+)?)
INT [+-]?[0-9]+