golang/src/regexp
Olivier Mengué 0611816216 regexp/syntax: cleanup code generation in perl_groups.go
Cleanup code generation of perl_groups.go:
* Fix the generated code header to follow the standard https://go.dev/s/generatedcode
* Apply gofmt as last step of code generation
* Add //go:generate lines in parse.go to trigger code generation
* Adapt make_perl_groups.pl to handle writing directly to the output
  file (as we can't use shell redirection in go:generate lines)
* use strict; use warnings;

Change-Id: I675241da03dd3f6facc9eb9de00999bd9203ad70
Reviewed-on: https://go-review.googlesource.com/c/go/+/555995
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-04-02 13:59:01 +00:00
..
syntax regexp/syntax: cleanup code generation in perl_groups.go 2024-04-02 13:59:01 +00:00
testdata all: fix typos 2023-07-18 19:55:29 +00:00
all_test.go regexp: use slices to simplify the code 2024-03-25 19:36:03 +00:00
backtrack.go regexp: use built-in clear to clear b.visited in *bitState.reset 2023-09-14 17:25:39 +00:00
example_test.go regexp: improve Regexp.ReplaceAll documentation and tests related to Expand part 2023-08-07 00:22:53 +00:00
exec.go regexp: avoid copying each instruction executed 2022-06-04 20:10:54 +00:00
exec2_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
exec_test.go regexp: use slices to simplify the code 2024-03-25 19:36:03 +00:00
find_test.go regexp: document and implement that invalid UTF-8 bytes are the same as U+FFFD 2021-10-11 15:28:50 +00:00
onepass.go regexp: use slices to simplify the code 2024-03-25 19:36:03 +00:00
onepass_test.go regexp: use slices to simplify the code 2024-03-25 19:36:03 +00:00
regexp.go regexp: add available godoc link 2024-02-26 20:50:01 +00:00