Apply on top of https://github.com/db47h/ragel/commit/b06a6ec433eecb31b95a4f7534ab26cabbead5c7
Add ragel.Concurrent(true)
in the calls to ragel.New
in scanner_test.go:
l := ragel.New("INPUT", r, stub{}, ragel.Concurrent(true), ragel.BufferSize(int(fi.Size())))