Reputation: 624
I'm working with Luasnip, and for my latex setup I have some snippets that would make sense to run only if the previous character is a digit, a letter, or a curly brace. The digit and numbers work flawlessly, but for the life of me I can't figure out how to include this closing curly brace. I've escaped it every way I can think of with no success. Here is the pattern I'm working with currently, but if anyone can explain how to include the closing curly brace in that set that would be phenomenal.
"([%a%d}])_" -- _ should be the trigger character for a subscript in this case.
Upvotes: 1
Views: 132