~chrisppy/public-inbox

hare-scfg: fix for input that is not ending with a lf v1 APPLIED

Armin Preiml: 1
 fix for input that is not ending with a lf

 1 files changed, 3 insertions(+), 1 deletions(-)
#1394113 alpine.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~chrisppy/public-inbox/patches/56584/mbox | git am -3
Learn more about email & git

[PATCH hare-scfg] fix for input that is not ending with a lf Export this patch

---
 format/scfg/scan.ha | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/format/scfg/scan.ha b/format/scfg/scan.ha
index 71d1df3..48f6a0a 100644
--- a/format/scfg/scan.ha
+++ b/format/scfg/scan.ha
@@ -5,12 +5,14 @@ use bufio;
use io;
use shlex;
use strings;
use types;

// Creates a scfg scanner. Use [[next]] to read directives. The caller must call
// [[finish]] once they're done with this object.
export fn scan(in: io::handle) scanner = {
	return scanner {
		scan = bufio::newscanner(in),
		scan = bufio::newscanner(in, types::SIZE_MAX,
			bufio::scan_options::EOF_GREEDY),
		lineno = 1,
		...
	};
-- 
2.47.1
hare-scfg/patches/alpine.yml: SUCCESS in 35s

[fix for input that is not ending with a lf][0] from [Armin Preiml][1]

[0]: https://lists.sr.ht/~chrisppy/public-inbox/patches/56584
[1]: mailto:apreiml@strohwolke.at

✓ #1394113 SUCCESS hare-scfg/patches/alpine.yml https://builds.sr.ht/~chrisppy/job/1394113
Thanks!

To git@git.sr.ht:~chrisppy/hare-scfg
   f5832fa..8daca72  main -> main