-
Notifications
You must be signed in to change notification settings - Fork 47
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
Case-sensitive #136
Comments
Try to use call lexima#add_rule({'char': '(', 'at': '\c\\\(big\)\%#', 'input_after': '\\\1)', 'filetype': 'tex', 'with_submatch': 1}) |
I did not see A related issue is:
Overwriting the extension, as above, is the expected, natural behavior. Is there a hidden trick which does that automatically? |
Yes, you do not need hidden tricks but you can write your own rules explicitly. lexima's leave feature can be used to achieve these rules. For example, call lexima#add_rule({'char': '\', 'at': '\%#\\]', 'leave': ']', 'filetype': 'tex'})
call lexima#add_rule({'char': '\', 'at': '\c\%#\\big)', 'leave': ')', 'filetype': 'tex'}) These rule will work as the follows. A single char
Note that lexima's leave rule can only apply auto input text, see |
Thank you for the
where
but this does not seem to work. Perhaps an issue with special characters or escaping? |
Using |
Or, I think lexima.vim should report user-friendly error when |
Thank you, this helps indeed :-)
However, for this to work, there seems to be a hidden trick again… |
How doesn't it work? |
I know the documentation. Here is another example, where I tried multiple variants to leave by typing
The snippets above insert a |
Agree. In this case, it would be better to report an error. |
Here,
call lexima#add_rule({'char': '(', 'at': '\\Big\%#', 'input_after': '\Big)', 'filetype': 'tex'})
call lexima#add_rule({'char': '(', 'at': '\\big\%#', 'input_after': '\big)', 'filetype': 'tex'})
there seems to be an issue with case-sensitive comparisons, as both expand the same way.
The text was updated successfully, but these errors were encountered: