<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Unfortunately, as stated at <a href="https://manual.macromates.com/en/language_grammars" class="">https://manual.macromates.com/en/language_grammars</a>, it is not possible to make matches over more than one line.<div class="">But, using the pattern attribute, you can make matches inside the match. For example, in Python :</div><div class=""><img apple-inline="yes" id="B728E7DA-CA24-49A4-AED5-479C6DF90AEF" height="65" width="139" apple-width="yes" apple-height="yes" src="cid:436817CE-18C2-4123-B8C1-BB99473E7BA4" class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">Le 1 nov. 2015 à 20:37, Jacob Carlborg <<a href="mailto:doob@me.com" class="">doob@me.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">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?</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote></div><br class=""></div></body></html>