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

Bug 348347

Summary: [client] [textmatestyler] Support case-insensitive patterns
Product: [ECD] Orion Reporter: Karol Gusak <karol>
Component: EditorAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, kazm, mamacdon
Version: 0.2   
Target Milestone: 0.3 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Karol Gusak CLA 2011-06-05 17:28:07 EDT
Many TextMate patterns defined in grammar files use (?i) for case-insensitive matching of whole pattern. It'd be reasonable to recognize this flag similarly to (?x) which is already supported.
Comment 1 Mark Macdonald CLA 2011-06-17 15:08:49 EDT
I agree, this would be good to have. It should be possible to detect stuff that is equivalent to a global regex /i flag (like "(?i)foo" and "(?i:foo)") and turn it into the global flag.

I'll investigate it after 0.2 is released.
Comment 2 Mark Macdonald CLA 2011-08-29 11:00:21 EDT
This is now supported. The limitation is that, as I mentioned in Comment 1, the "i" flag must apply to the entire pattern.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=82c0c1a13e422be248b3ec38ba7cc537624b3554