-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/watchflakes/internal/script: lex !~ as a single token
Even though both ~ and !~ operators are documented as supported at https://go.dev/wiki/Watchflakes, it seems only the former was ever supported in practice. As it was uncovered when I tried the latter in https://go.dev/issue/66337#issuecomment-2569872000, it fails to parse with an "unexpected !" error. The problem is that lex doesn't find the !~ token, it reports that sequence as separate tokens ! and ~. Fix its logic. Fixes golang/go#71119. Change-Id: I08dd845a59e976a5eb2687924dce972680c90077 Reviewed-on: https://go-review.googlesource.com/c/build/+/640275 Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters