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

Add single/double quotation mark as delimiters #37

Closed
j5shi opened this issue Sep 3, 2014 · 2 comments
Closed

Add single/double quotation mark as delimiters #37

j5shi opened this issue Sep 3, 2014 · 2 comments
Labels

Comments

@j5shi
Copy link

j5shi commented Sep 3, 2014

I added 's': { 'pattern': "'" } and 'd': { 'pattern': '"' } to g:easy_align_delimiters, however it doesn't work, any suggestions?

@junegunn
Copy link
Owner

junegunn commented Sep 3, 2014

Possibly because they are highlighed as Strings and therefore ignored.
Try this:

" Ignore only comments not strings
's': { 'pattern': "'", 'ignore_groups': ['Comment'] }

@j5shi
Copy link
Author

j5shi commented Sep 3, 2014

great, problem solved, thank you.

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

No branches or pull requests

2 participants