Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347590 - [client] [textmatestyler] Support begin-to-end backreferences from TextMate grammars
Summary: [client] [textmatestyler] Support begin-to-end backreferences from TextMate g...
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Mark Macdonald CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 345191
Blocks:
  Show dependency tree
 
Reported: 2011-05-29 20:09 EDT by Mark Macdonald CLA
Modified: 2011-09-01 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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