diff options
-rw-r--r-- | starmath/source/parse.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 35d3a735e263..cb47ab9228b7 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -557,6 +557,16 @@ void SmParser::NextToken() rnEndPos = nRealStart + 2; } + else if (m_aBufferString.match("<-", nRealStart)) + { + m_aCurToken.eType = TLEFTARROW; + m_aCurToken.cMathChar = MS_LEFTARROW; + m_aCurToken.nGroup = TGSTANDALONE; + m_aCurToken.nLevel = 5; + m_aCurToken.aText = "<-"; + + rnEndPos = nRealStart + 2; + } else if (m_aBufferString.match("<>", nRealStart)) { m_aCurToken.eType = TNEQ; @@ -854,6 +864,16 @@ void SmParser::NextToken() rnEndPos = nRealStart + 2; } + else if (m_aBufferString.match("->", nRealStart)) + { + m_aCurToken.eType = TRIGHTARROW; + m_aCurToken.cMathChar = MS_RIGHTARROW; + m_aCurToken.nGroup = TGSTANDALONE; + m_aCurToken.nLevel = 5; + m_aCurToken.aText = "->"; + + rnEndPos = nRealStart + 2; + } else { m_aCurToken.eType = TMINUS; |