[TxMt] Re: Defining a regular expression looking like a grammar

Allan Odgaard mailinglist at textmate.org
Thu Nov 1 06:35:38 UTC 2018


On 21 Oct 2018, at 22:32, Jacob Carlborg wrote:

> No, I’m talking about having variables in the grammar with reusable 
> regular expression snippets. Something like:
> […]

I see, well for that, I think it would be more consistent (with the 
existing feature set) to treat regular expressions as format strings, as 
we already use format strings in other places related to grammars, and 
as variables can be referenced is `${…}` it should not really cause an 
issue with escaping, as the only thing that should meaningfully go after 
`$` in a regexp is `\n` (or possibly '(').
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20181101/fe6642ae/attachment.html>


More information about the textmate mailing list