From b912d84b1afe05e5f079bd6edef2f0d74020f9aa Mon Sep 17 00:00:00 2001 From: bjculkin Date: Thu, 6 Apr 2017 16:18:22 -0400 Subject: More properties --- BJC-Utils2/data/formats.sprop | 9 ++++- BJC-Utils2/data/regexes.sprop | 9 +++-- .../java/bjc/utils/parserutils/TokenUtils.java | 40 +++++++--------------- 3 files changed, 27 insertions(+), 31 deletions(-) diff --git a/BJC-Utils2/data/formats.sprop b/BJC-Utils2/data/formats.sprop index bdd9286..ba54208 100644 --- a/BJC-Utils2/data/formats.sprop +++ b/BJC-Utils2/data/formats.sprop @@ -5,7 +5,14 @@ #################################################### ## Format the three types of string escapes into a valid pattern. +## The three types are: +## 1) Short escapes. +## 2) Octal escapes. +## 3) Unicode escapes. stringEscape \\(%1$s|%2$s|%3$s) -## Format the parts of a regex into one that matches java-style double-quoted strings +## Format the parts of a regex into one that matches java-style double-quoted strings. +## The parts are: +## 1) Anything that's not a possible escape sequence or quote. +## 2) A possible escape sequence. doubleQuotes ("(%1$s|%2$s)*") \ No newline at end of file diff --git a/BJC-Utils2/data/regexes.sprop b/BJC-Utils2/data/regexes.sprop index bece4d3..6c40e67 100644 --- a/BJC-Utils2/data/regexes.sprop +++ b/BJC-Utils2/data/regexes.sprop @@ -15,5 +15,10 @@ unicodeStringEscape u[0-9a-fA-F]{4} ## Match an unescaped quote in a string. unescapedQuote (?