mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare/parsing] Parse degree sign ° in units
Change-Id: I518aba17214b049dfa8fd3b89f4ce124dbd6b41a
This commit is contained in:
committed by
Émilie Feral
parent
d37540f032
commit
67e6e38825
@@ -53,6 +53,7 @@ static constexpr CodePoint UCodePointEmpty = 0x11; // Used to
|
||||
static constexpr CodePoint UCodePointLeftSystemParenthesis = 0x12; // Used for serialization
|
||||
static constexpr CodePoint UCodePointRightSystemParenthesis = 0x13; // Used for serialization
|
||||
|
||||
static constexpr CodePoint UCodePointDegreeSign = 0xb0; // °
|
||||
static constexpr CodePoint UCodePointMiddleDot = 0xb7; // ·
|
||||
static constexpr CodePoint UCodePointMultiplicationSign = 0xd7; // ×
|
||||
static constexpr CodePoint UCodePointGreekSmallLetterTheta = 0x3b8; // θ
|
||||
|
||||
@@ -162,7 +162,7 @@ Token Tokenizer::popToken() {
|
||||
* reserved or custom identifier, popIdentifier is called in both cases.
|
||||
*/
|
||||
Token result(Token::Unit);
|
||||
result.setString(start + 1, popIdentifier(UCodePointNull)); // + 1 for the underscore
|
||||
result.setString(start + 1, popIdentifier(UCodePointDegreeSign)); // + 1 for the underscore
|
||||
return result;
|
||||
}
|
||||
if (c.isLatinLetter() ||
|
||||
|
||||
Reference in New Issue
Block a user