Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348347 - [client] [textmatestyler] Support case-insensitive patterns
Summary: [client] [textmatestyler] Support case-insensitive patterns
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Editor (show other bugs)
Version: 0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.3 M2   Edit
Assignee: Mark Macdonald CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-05 17:28 EDT by Karol Gusak CLA
Modified: 2011-08-29 11:00 EDT (History)
3 users (show)

See Also:


Attachments

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