summaryrefslogtreecommitdiffstats
path: root/src/qdoc/tokenizer.h
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2025-03-30 14:49:56 +0300
committerTarja Sundqvist <tarja.sundqvist@qt.io>2025-03-30 14:49:56 +0300
commit83b91bf9dbdde0bd51c1906168ad4b4ecef54420 (patch)
tree6a2e96b4a41c72160a57696af0ede95bc29f55d6 /src/qdoc/tokenizer.h
parent1db38dc7d01e2b0567fc6d92c7aa58bfe69ce9c3 (diff)
parent6b85f003930b2776684f114c139cec86fb9b9918 (diff)
Merge tag 'v5.15.18-lts' into tqtc/lts-5.15-opensourcev5.15.18-lts-lgpl5.15
Qt 5.15.18-lts release Change-Id: I8544dfbea95d7cb4c987b52ea2ddfe7350b43dd1
Diffstat (limited to 'src/qdoc/tokenizer.h')
-rw-r--r--src/qdoc/tokenizer.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/qdoc/tokenizer.h b/src/qdoc/tokenizer.h
index 64f188f07..104e8efbf 100644
--- a/src/qdoc/tokenizer.h
+++ b/src/qdoc/tokenizer.h
@@ -177,12 +177,14 @@ private:
void init();
void start(const Location &loc);
/*
- This limit on the length of a lexeme seems fairly high, but a
- doc comment can be arbitrarily long. The previous 65,536 limit
- was reached by Mark Summerfield.
- */
- enum { yyLexBufSize = 524288 };
+ Represents the maximum amount of characters that a token can be composed
+ of.
+ 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 = 1048576 };
int getch() { return yyPos == yyIn.size() ? EOF : yyIn[yyPos++]; }
inline int getChar()