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

Bug 374518

Summary: [textmatestyler] Throw on possessive quantifiers
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: EditorAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.5   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Mark Macdonald CLA 2012-03-16 11:51:16 EDT
If you supply a grammar that uses a "possessive quantifier":
> ?+
> *+
> ++
> [n,m]+
> {n,}+
> {n}+

... the TextMateStyler should throw an error stating that the expression is not supported. Otherwise you will get a strange error later from the JS engine like this:
> SyntaxError: Invalid regular expression: /a?+/: Nothing to repeat
Comment 1 John Arthorne CLA 2015-05-05 14:47:23 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html