diff --git a/src/plugins/nim/tools/nimlexer.cpp b/src/plugins/nim/tools/nimlexer.cpp index 019c72245fb..d79e6426715 100644 --- a/src/plugins/nim/tools/nimlexer.cpp +++ b/src/plugins/nim/tools/nimlexer.cpp @@ -139,7 +139,7 @@ bool NimLexer::matchMultiLineCommentStart() return m_stream.peek() == '#'&& m_stream.peek(1) == '['; } -bool NimLexer::matchMultiLineCommendEnd() +bool NimLexer::matchMultiLineCommentEnd() { return m_stream.peek() == ']' && m_stream.peek(1) == '#'; } @@ -153,7 +153,7 @@ NimLexer::Token NimLexer::readMultiLineComment(bool moveForward) m_stream.move(2); while (!m_stream.isEnd()) { - if (matchMultiLineCommendEnd()) { + if (matchMultiLineCommentEnd()) { m_stream.move(2); m_state = State::Default; break; diff --git a/src/plugins/nim/tools/nimlexer.h b/src/plugins/nim/tools/nimlexer.h index 5e27a4bb741..297a3a88bec 100644 --- a/src/plugins/nim/tools/nimlexer.h +++ b/src/plugins/nim/tools/nimlexer.h @@ -95,7 +95,7 @@ private: Token readComment(); bool matchMultiLineCommentStart(); - bool matchMultiLineCommendEnd(); + bool matchMultiLineCommentEnd(); Token readMultiLineComment(bool moveForward); bool matchDocumentationStart();