From e332e018db22e46f37647651ab921eac4c8b027b Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 21 Aug 2019 11:19:47 +0900 Subject: [PATCH] feat: allow raw tab characters in basic strings This feature is planned to be incorporated in toml v1.0.0 but not released yet. --- toml/lexer.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toml/lexer.hpp b/toml/lexer.hpp index 67df844..42638ba 100644 --- a/toml/lexer.hpp +++ b/toml/lexer.hpp @@ -115,7 +115,8 @@ using lex_local_time = lex_partial_time; // =========================================================================== using lex_quotation_mark = character<'"'>; -using lex_basic_unescaped = exclude, +using lex_basic_unescaped = exclude, // 0x09 (tab) + in_range<0x0a, 0x1F>, // is allowed character<0x22>, character<0x5C>, character<0x7F>>>; using lex_escape = character<'\\'>; @@ -137,7 +138,8 @@ using lex_basic_string = sequence; using lex_ml_basic_string_delim = repeat>; -using lex_ml_basic_unescaped = exclude, +using lex_ml_basic_unescaped = exclude, // 0x09 + in_range<0x0a, 0x1F>, // is tab character<0x5C>, character<0x7F>, lex_ml_basic_string_delim>>;