rhysd / vim-grammarous

A powerful grammar checker for Vim using LanguageTool.
1.1k stars 41 forks source link

Grammar check in Strings #55

Open mohitleo9 opened 6 years ago

mohitleo9 commented 6 years ago

Hey, Is there a way to force the checker to validate only 'strings' and 'comments' for grammar.

mohitleo9 commented 6 years ago

Actually took a quick look, could https://github.com/rhysd/vim-grammarous/blob/8fbcc8e61409f93f215fe627b231e4550b967e18/autoload/grammarous.vim#L135-L138 be generalized to pass in any (or an array of) syntax group and provide predefined settings from strings and comments?

rhysd commented 6 years ago

Yeah, it can be extended as you're saying. I label this as enhancement. (I think related to #47)