QStringList AbstractSettings::options() { if (m_options.isEmpty()) readDocumentation(); return m_options.keys(); }
NimLexer::Token NimLexer::onDefaultState() { while (!m_stream->isEnd()) { if (isSkipChar(m_stream)) { m_stream->move(); continue; } if (isOperator(m_stream)) return readOperator(m_stream); if (matchDocumentationStart(m_stream)) return readDocumentation(m_stream); if (matchCommentStart(m_stream)) return readComment(m_stream); if (matchMultiLineStringLiteralStart(m_stream)) return readMultiLineStringLiteral(m_stream, true); if (matchStringLiteralStart(m_stream)) return readStringLiteral(m_stream); if (matchIdentifierOrKeywordStart(m_stream)) return readIdentifierOrKeyword(m_stream); m_stream->move(); } return Token {0,0, TokenType::EndOfText }; }