mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-30 05:48:40 +00:00
Add option to not parse floating point numbers when using SimpleLexer
This commit is contained in:
1 parent
b5cd357014
commit
a092f76ec9
11 files changed
+41
-23
No files matched your search
@@ -285,7 +285,8 @@ std::unique_ptr<ISimpleExpression> DefinesStreamProxy::ParseIfExpression(const s
|
||||
|
||||
SimpleLexer::Config lexerConfig;
|
||||
lexerConfig.m_emit_new_line_tokens = false;
|
||||
lexerConfig.m_read_numbers = true;
|
||||
lexerConfig.m_read_integer_numbers = true;
|
||||
lexerConfig.m_read_floating_point_numbers = true;
|
||||
lexerConfig.m_read_strings = false;
|
||||
SimpleExpressionMatchers().ApplyTokensToLexerConfig(lexerConfig);
|
||||
|
||||
|
||||
Reference in new issue
Block a user