Closed cpkio closed 3 years ago
This is indeed a bug: the inline comments (the content after the #
) is throwing the parser off.
In 2.11.2 still says FLAG stanza not yet supported
Yes, I haven't fixed this yet -- I'll update this issue when I do.
This should be fixed now.
I think this problem might still exist? I'm on v2.12.0
Yes, I actually think that I introduced the bug above while attempting to fix the OP's bug.
The actual issue here appears less straightforward than I initially thought: there appears to be no official specification for comment syntax, so it seems to be impossible to handle this perfectly.
The best I can do is attempt to copy the actual behavior of Hunspell, but they also get this wrong in some cases:
$ echo "verbosirregulars" | hunspell -d an_ES
verbos irregulars, verbos-irregulars, # VERBOS IRREGULARS
I think both cases reported here should be "working" now. Although, I think the implementation could use a general re-factor.
looks to be working for me now 👍
It seems Vale cannot use some Hunspell dictionaries for now?
ru-dictionary.yml
Command
Result
If
FLAG …
stanza deleted…ru_RU.aff
[1:20]