small fix in Quantity lexer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user