[TxMt] Re: Restrict characters in multiline strings

Louis Abraham louis.abraham at polytechnique.edu
Sun Nov 1 21:12:13 UTC 2015


Unfortunately, as stated at https://manual.macromates.com/en/language_grammars <https://manual.macromates.com/en/language_grammars>, it is not possible to make matches over more than one line.
But, using the pattern attribute, you can make matches inside the match. For example, in Python :




> Le 1 nov. 2015 à 20:37, Jacob Carlborg <doob at me.com> a écrit :
> 
> To create a pattern in a TextMate grammar that matches across multiple lines the "begin" and "end" keys are necessary. But is it possible to somehow restrict what is matched between the begin and the end?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20151101/225c217e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 9941 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20151101/225c217e/attachment-0001.png>


More information about the textmate mailing list