mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
implement RegExpWordBoundary in RegexTreeView
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user