Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammar check in Strings #55

Open
mohitleo9 opened this issue Jan 2, 2018 · 2 comments
Open

Grammar check in Strings #55

mohitleo9 opened this issue Jan 2, 2018 · 2 comments

Comments

@mohitleo9
Copy link

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

@mohitleo9
Copy link
Author

Actually took a quick look, could

if s:is_comment_only(parsed['comments-only'])
call filter(b:grammarous_result, 'synIDattr(synID(v:val.fromy+1, v:val.fromx+1, 0), "name") =~? "comment"')
endif
be generalized to pass in any (or an array of) syntax group and provide predefined settings from strings and comments?

@rhysd
Copy link
Owner

rhysd commented Jan 24, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants