From dd84dfcc00e72fea383249801836b36d379c868f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 20 Dec 2019 11:27:28 +0000 Subject: Add a lexer rule for parsing text in bulk --- libjsonpp/json.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libjsonpp/json.ll b/libjsonpp/json.ll index fa6ad8d..cae25e5 100644 --- a/libjsonpp/json.ll +++ b/libjsonpp/json.ll @@ -29,6 +29,7 @@ number [-+]?[0-9]+(\.[0-9]+)? colon ":" separator "," escape "\\" +text [^\\\"]* %x OBJECT_ITEM %x OBJECT_NEXT @@ -139,7 +140,7 @@ escape "\\" yy_pop_state(); } -. { +{text} { buf += YYText(); } -- cgit v1.2.3