1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-09 11:01:47 +03:00

added whitespace handling

This commit is contained in:
Niels
2015-02-11 09:51:24 +01:00
parent 5d280143b7
commit d609790fff
2 changed files with 242 additions and 211 deletions

View File

@ -2432,13 +2432,18 @@ class basic_json
m_start = m_cursor;
/*!re2c
re2c:define:YYCTYPE = char;
re2c:define:YYCURSOR = m_cursor;
re2c:define:YYLIMIT = m_limit;
re2c:define:YYCTYPE = char;
re2c:define:YYMARKER = m_marker;
re2c:indent:string = " ";
re2c:indent:top = 1;
re2c:yyfill:enable = 0;
re2c:labelprefix = "json_parser_";
re2c:yyfill:enable = 0;
// whitespace
ws = [ \t\n\r]*;
ws { return scan(); }
// structural characters
"[" { return token_type::begin_array; }