[poincare/parsing] Parse degree sign ° in units

Change-Id: I518aba17214b049dfa8fd3b89f4ce124dbd6b41a
This commit is contained in:
Gabriel Ozouf
2020-09-18 16:15:25 +02:00
committed by Émilie Feral
parent d37540f032
commit 67e6e38825
2 changed files with 2 additions and 1 deletions

View File

@@ -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; // θ

View File

@@ -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() ||