Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347590

Summary: [client] [textmatestyler] Support begin-to-end backreferences from TextMate grammars
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: karol
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 345191    
Bug Blocks:    

Description Mark Macdonald CLA 2011-05-29 20:09:23 EDT
TextMate allows the "end" regex in a begin..end rule to backreference matching groups from the "begin" match.
So you can do something like this:
> { name: "heredoc",
>   begin: "<<(\w+)",
>   end: "^\1$"
> }
to match a Perl-style "here document" block.

Should support this.
Comment 1 Mark Macdonald CLA 2011-06-07 16:12:36 EDT
Simon reviewed this change

Pushed to master as
http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=ac7067168a3a8ad2c848369192eb243dc03eaaaf