summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjsonpp/json.ll3
1 files changed, 2 insertions, 1 deletions
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();
}
-<STRING>. {
+<STRING>{text} {
buf += YYText();
}