Skip to content

Commit 5ebca66

Browse files
committed
added some comments
1 parent 00ac8d3 commit 5ebca66

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

core/src/main/antlr4/org/evomaster/core/parser/RegexJava.g4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,18 @@ CharacterEscape
131131
//| IdentityEscape
132132
;
133133

134+
// TODO missing \p escapes
134135
fragment PCharacterClassEscapeLabel
135136
: PosixCharacterClassLabel
136137
| UnicodeCategoriesLabel
138+
// | UnicodeScriptsLabel // https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#usc
139+
// | UnicodeBlocksLabel // https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#ubc
140+
// | UnicodeBinaryProperiesLabel // https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#ubpc
141+
// | javalangCharacterClassesLabel // https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#jcc
137142
;
138143

144+
// TODO missing Unicode categories labels and implementations
145+
// https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#ucc
139146
fragment UnicodeCategoriesLabel
140147
: 'Pe'
141148
;

core/src/main/kotlin/org/evomaster/core/search/gene/regex/CharacterClassEscapeRxGene.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class CharacterClassEscapeRxGene(
8282
// Unicode category character classes (\p{X})
8383
val unicodeCategorySets = mapOf(
8484
"Pe" to stringToListOfCharacterRanges(")]}")
85-
// more Unicode categories will be added here
85+
// more Unicode categories will be added here in the future
8686
)
8787

8888
// create both normal and negated version for all

0 commit comments

Comments
 (0)