Nim: Fix typo

Fix a typo: Rename matchMultiLineCommendEnd() to matchMultiLineCommentEnd()

Change-Id: I2c1a5280c8abb05b9f76d0d8cce138d8a40ad014
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Razi Alavizadeh
2018-03-07 02:34:50 +03:30
parent 2407792d0d
commit 67e5eabc4a
2 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ bool NimLexer::matchMultiLineCommentStart()
return m_stream.peek() == '#'&& m_stream.peek(1) == '['; return m_stream.peek() == '#'&& m_stream.peek(1) == '[';
} }
bool NimLexer::matchMultiLineCommendEnd() bool NimLexer::matchMultiLineCommentEnd()
{ {
return m_stream.peek() == ']' && m_stream.peek(1) == '#'; return m_stream.peek() == ']' && m_stream.peek(1) == '#';
} }
@@ -153,7 +153,7 @@ NimLexer::Token NimLexer::readMultiLineComment(bool moveForward)
m_stream.move(2); m_stream.move(2);
while (!m_stream.isEnd()) { while (!m_stream.isEnd()) {
if (matchMultiLineCommendEnd()) { if (matchMultiLineCommentEnd()) {
m_stream.move(2); m_stream.move(2);
m_state = State::Default; m_state = State::Default;
break; break;

View File

@@ -95,7 +95,7 @@ private:
Token readComment(); Token readComment();
bool matchMultiLineCommentStart(); bool matchMultiLineCommentStart();
bool matchMultiLineCommendEnd(); bool matchMultiLineCommentEnd();
Token readMultiLineComment(bool moveForward); Token readMultiLineComment(bool moveForward);
bool matchDocumentationStart(); bool matchDocumentationStart();