AtomLinter / linter-spell-latex

Provider for Atom linter-spell package to enable LaTeX spell checking.
MIT License
8 stars 7 forks source link

Spell check in comments #30

Closed PierreMarchand20 closed 3 years ago

PierreMarchand20 commented 6 years ago

I have the following behavior: capture d ecran 2018-01-19 a 18 40 53

Would it be possible to not have this behavior ? I checked the scope of \lVert for example: capture d ecran 2018-01-19 a 18 42 30, so it seems possible to discard latex commands in comments since they are part of meta.function.environment.general.latex.

yitzchak commented 6 years ago

Spell checking in comments can be disabled in the settings page

PierreMarchand20 commented 6 years ago

Well, actually, I want it to do the spell-check. But it does not recognize latex commands in comments so that, as soon as I comment a part of my file, I get a lot of spell-ckeck warning because of the latex commands.

Aerijo commented 6 years ago

I believe he's using my grammar. If there is anything I need to change, let me know.

I probably won't do too much more to that grammar though, on account of tree-sitter looking ready to arrive some time this year.

@yitzchak do you have any tips on developing this new grammar type? I can't even load it.

yitzchak commented 6 years ago

@PierreMarchand20 It is currently not possible to recognize LaTeX syntax inside comments since that is not part of any LaTeX syntax package for Atom.

@Aerijo I have only just started looking into tree-sitter. I have a basic setup in tree-sitter-latex, but I have not uploaded it yet. Not sure how far I will get since LaTeX is not a context free LR grammar. Having a tree sitter grammar for LaTeX would also be useful for an ide-latex package.