implement RegExpWordBoundary in RegexTreeView

This commit is contained in:
Erik Krogh Kristensen
2021-09-02 13:50:45 +02:00
parent 8535e6f281
commit 01e345c2cc

View File

@@ -525,6 +525,13 @@ private int toHex(string hex) {
result = 15 and hex = ["f", "F"]
}
/**
* A word boundary, that is, a regular expression term of the form `\b`.
*/
class RegExpWordBoundary extends RegExpEscape {
RegExpWordBoundary() { this.getUnescaped() = "b" }
}
/**
* A character class escape in a regular expression.
* That is, an escaped charachter that denotes multiple characters.