small fix in Quantity lexer

This commit is contained in:
jriegel
2013-12-12 20:20:11 +01:00
parent 57b9afed7d
commit c5c8a80a8f
2 changed files with 106 additions and 100 deletions

View File

@@ -38,7 +38,7 @@ ID [a-z][a-z0-9]*
[-+()=/*^] { return *yytext; }
"nm" yylval = Quantity::NanoMetre; return UNIT; // nano meter
"ym" yylval = Quantity::MicroMetre; return UNIT; // micro meter
"um" yylval = Quantity::MicroMetre; return UNIT; // micro meter
"\xC2\xB5m" yylval = Quantity::MicroMetre; return UNIT; // micro meter (greek micro in UTF8)
"mm" yylval = Quantity::MilliMetre; return UNIT; // milli meter (internal standard length)
"cm" yylval = Quantity::CentiMetre; return UNIT; // centi meter
@@ -147,3 +147,4 @@ ID [a-z][a-z0-9]*
"tanh" return TANH;
"sqrt" return SQRT;
. return *yytext;