golang/src/regexp/syntax
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
..
compile.go regexp: fix repeat of preferred empty match 2021-05-13 14:52:20 +00:00
doc.go regexp/syntax: use standard generated code header 2024-03-19 11:21:02 +00:00
make_perl_groups.pl regexp/syntax: cleanup code generation in perl_groups.go 2024-04-02 13:59:01 +00:00
op_string.go all: re-run stringer 2023-04-11 20:24:07 +00:00
parse.go regexp/syntax: cleanup code generation in perl_groups.go 2024-04-02 13:59:01 +00:00
parse_test.go regexp/syntax: use more compact Regexp.String output 2023-08-16 16:02:30 +00:00
perl_groups.go regexp/syntax: cleanup code generation in perl_groups.go 2024-04-02 13:59:01 +00:00
prog.go regexp: add available godoc link 2024-02-26 20:50:01 +00:00
prog_test.go regexp/syntax: test for lowercase letters first in IsWordChar 2023-03-14 04:39:42 +00:00
regexp.go regexp/syntax: use the Regexp.Equal static method directly 2024-03-29 16:41:51 +00:00
simplify.go all: single space after period. 2016-03-02 00:13:47 +00:00
simplify_test.go regexp/syntax: use more compact Regexp.String output 2023-08-16 16:02:30 +00:00