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

The commit that remove duplicate snippets broke important latex feature. #1514

Open
gzqx opened this issue Mar 8, 2024 · 2 comments
Open

Comments

@gzqx
Copy link
Contributor

gzqx commented Mar 8, 2024

#1505 broke the feature introduced in #1474. Without the regrex substitution, it will put space inside label, which is a syntax error in latex.

According to the document of SnipMate it should support regrex from |substitution|, however I cannot get any snippet including the examples in the document to work following snipmate syntax (I have tried ultisnip, snipmate or even luasnip with the syntax of snipmate). I am not sure if there is some special setting in vim-snippet which caused this or there is simply some bug in SnipMate.

For now I would recommend bring back the snippets removed in #1505.

@gzqx
Copy link
Contributor Author

gzqx commented Mar 8, 2024

For some reason I don't know, I now managed to get it working with snipmate syntax. I have created a pull request #1515

@gzqx
Copy link
Contributor Author

gzqx commented Mar 8, 2024

However, notice that this syntax is not compatible with Ultisnip, which means that things will go wrong if one use ultisnip instead of snipmate. I still suggest bringing back #1474 in combination with this PR.

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

No branches or pull requests

1 participant