summaryrefslogtreecommitdiffstats
path: root/src/qdoc/tokenizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/tokenizer.h')
-rw-r--r--src/qdoc/tokenizer.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/qdoc/tokenizer.h b/src/qdoc/tokenizer.h
index 77b6bb193..a7b1728fb 100644
--- a/src/qdoc/tokenizer.h
+++ b/src/qdoc/tokenizer.h
@@ -127,13 +127,14 @@ private:
void init();
void start(const Location &loc);
/*
- Represents the maximum amount of characters that can appear in a
- block-comment.
+ Represents the maximum amount of characters that a token can be composed
+ of.
- When a block-comment with more characters than the maximum amount is
- encountered, a warning is issued.
+ When a token with more characters than the maximum amount is encountered, a
+ warning is issued and parsing continues, discarding all characters from the
+ currently parsed token that don't fit into the buffer.
*/
- enum { yyLexBufSize = 524288 };
+ enum { yyLexBufSize = 1048576 };
int getch() { return m_pos == m_in.size() ? EOF : m_in[m_pos++]; }