mirror of
https://github.com/cheat/cheat.git
synced 2026-03-07 19:23:34 +01:00
chore(deps): upgrade dependencies
Upgrade all dependencies to newest versions.
This commit is contained in:
13
vendor/github.com/dlclark/regexp2/syntax/parser.go
generated
vendored
13
vendor/github.com/dlclark/regexp2/syntax/parser.go
generated
vendored
@@ -1311,6 +1311,17 @@ func (p *parser) scanBasicBackslash(scanOnly bool) (*regexNode, error) {
|
||||
|
||||
// Scans X for \p{X} or \P{X}
|
||||
func (p *parser) parseProperty() (string, error) {
|
||||
// RE2 and PCRE supports \pX syntax (no {} and only 1 letter unicode cats supported)
|
||||
// since this is purely additive syntax it's not behind a flag
|
||||
if p.charsRight() >= 1 && p.rightChar(0) != '{' {
|
||||
ch := string(p.moveRightGetChar())
|
||||
// check if it's a valid cat
|
||||
if !isValidUnicodeCat(ch) {
|
||||
return "", p.getErr(ErrUnknownSlashP, ch)
|
||||
}
|
||||
return ch, nil
|
||||
}
|
||||
|
||||
if p.charsRight() < 3 {
|
||||
return "", p.getErr(ErrIncompleteSlashP)
|
||||
}
|
||||
@@ -1427,7 +1438,7 @@ func (p *parser) scanCapname() string {
|
||||
return string(p.pattern[startpos:p.textpos()])
|
||||
}
|
||||
|
||||
//Scans contents of [] (not including []'s), and converts to a set.
|
||||
// Scans contents of [] (not including []'s), and converts to a set.
|
||||
func (p *parser) scanCharSet(caseInsensitive, scanOnly bool) (*CharSet, error) {
|
||||
ch := '\x00'
|
||||
chPrev := '\x00'
|
||||
|
||||
Reference in New Issue
Block a user