forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user