language-latex icon indicating copy to clipboard operation
language-latex copied to clipboard

Suggestion to replace quotation grammar with enquote

Open bendix3 opened this issue 8 years ago • 2 comments
trafficstars

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'

bendix3 avatar Aug 14 '17 11:08 bendix3

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?

yudai-nkt avatar Aug 23 '17 16:08 yudai-nkt

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.

bendix3 avatar Aug 29 '17 10:08 bendix3