language-latex
language-latex copied to clipboard
Suggestion to replace quotation grammar with enquote
I agree that regular quotation grammar is problematic and support it's deletion. Working with many languages and using the csquotes package, support for enquote grammar would be great, though. For now I just abused your latex grammar and it actually works, but perhaps someone can integrate it professionally. I just took the emph grammar and changed the first line and all names, this is what seems important:
'begin': '((\\\\)enquote[\\*]?)(\\{)'
# [...]
'name': 'meta.function.enquote.latex'
Thank you for your suggestion! However, I'm afraid I've only heard of the package and never used it, and it seems the syntax for \enquote is so simple that the current grammar already handles to a certain extent. What kind of support do you exactly need?
It is simple, I need the class for highlighting the text within a quotation environment. Basically, I would like to see \enquote replace the quotation string environment that was already deleted. But if nobody else wants their quotes highlighted, I'll just keep my changed version of the package. Thanks for adding the feature label, I'll remember next time.