ctags
ctags copied to clipboard
TOML: infinite loop
$ curl -LO https://github.com/BurntSushi/toml/raw/refs/heads/master/internal/toml-test/tests/invalid/encoding/bad-utf8-at-end.toml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 242 100 242 0 0 1901 0 --:--:-- --:--:-- --:--:-- 1901
$ timeout --verbose 10 ~/bin/ctags -o - ./bad-utf8-at-end.toml
timeout: sending signal TERM to command ‘/home/yamato/bin/ctags’
$
Putting --exclude=bad-utf8-at-end.toml to your .ctags.d/foo.ctags is a workaround.
The parser is broken. I replaced | in ABNF with / in PEG without enough consideration.
Things are not so simple.
I will disable TOML and Cargo subparser in the next release.
TOML and Cargo parsers are disabled in v6.2.0.