From ad463874f7f72e3323a01512f515c83fefdc1c73 Mon Sep 17 00:00:00 2001 From: Sasha Melentyev Date: Wed, 10 Jan 2024 13:53:01 +0300 Subject: [PATCH] chore: mv code gen note to top Signed-off-by: Sasha Melentyev --- buildinfo.go | 4 ++-- peg.peg.go | 4 ++-- tree/peg.go | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/buildinfo.go b/buildinfo.go index 3fc87cc..bd6d53f 100644 --- a/buildinfo.go +++ b/buildinfo.go @@ -5,9 +5,9 @@ const ( // VERSION is the version of peg VERSION = "unknown" // BUILDTIME is the build time of peg - BUILDTIME = "2020-08-26T03:40:14" + BUILDTIME = "2024-01-10T10:51:19" // COMMIT is the commit hash of peg - COMMIT = "5cdb3adc061370cdd20392ffe2740cc8db104126" + COMMIT = "047adc6e3cbbd46edaadb58ff9abc399c429ddc0" // IS_TAGGED is there a version IS_TAGGED = false ) diff --git a/peg.peg.go b/peg.peg.go index 6563c61..d741b22 100644 --- a/peg.peg.go +++ b/peg.peg.go @@ -1,6 +1,6 @@ -package main +// Code generated by ./peg -inline -switch peg.peg. DO NOT EDIT. -// Code generated by ./peg -inline -switch peg.peg DO NOT EDIT. +package main import ( "bytes" diff --git a/tree/peg.go b/tree/peg.go index 3abd833..fdf4804 100644 --- a/tree/peg.go +++ b/tree/peg.go @@ -21,10 +21,9 @@ import ( "github.com/pointlander/jetset" ) -const pegHeaderTemplate = `package {{.PackageName}} - -// Code generated by {{.Generator}} DO NOT EDIT. +const pegHeaderTemplate = `// Code generated by {{.Generator}}. DO NOT EDIT. +package {{.PackageName}} import ( {{range .Imports}}"{{.}}"