X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fparser.lex;h=d5d81d6428cb35ecae1a865766b6af9e4be7cae2;hp=beca943b1f55c757ec37462a52029c0fedf9aa4c;hb=26af26a251a58f33b295a0ae36ebd27ec167dc88;hpb=ee15a3b589d20a918d60e91a58eea067faf75cfc diff --git a/src/parser.lex b/src/parser.lex index beca943..d5d81d6 100644 --- a/src/parser.lex +++ b/src/parser.lex @@ -3,7 +3,7 @@ #include #include #include -#include "q.h" +#include "../lib/q.h" #include "parser.h" //RVALUE {NUMBER}|{PERCENT}|{NAME}|\"{STRING}\"|{DIM} @@ -163,8 +163,8 @@ void handleInclude(char*text, int len) %x BINARY NAME [a-zA-Z_./](-*[a-zA-Z0-9_./])* -TWIP ([0-9]+(\.([0-9]([05])?)?)?) -NUMBER [0-9]+(\.[0-9]*)? +TWIP (-?[0-9]+(\.([0-9]([05])?)?)?) +NUMBER -?[0-9]+(\.[0-9]*)? PERCENT {NUMBER}% STRING (\\.|[^\\"\n])* S [ \n\r\t]