- Timestamp:
- 04/30/08 00:22:52 (17 years ago)
- Location:
- trunk/ICeCoffEE/ICeCoffEE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEParser.m
r436 r473 74 74 75 75 @try { 76 if ([[NSCharacterSet characterSetWithCharactersInString: @";,. "] characterIsMember:76 if ([[NSCharacterSet characterSetWithCharactersInString: @";,.!"] characterIsMember: 77 77 [string characterAtIndex: selEnd - 1]]) { 78 78 selEnd--; 79 79 } 80 80 NSCharacterSet *alphanumericCharacterSet = [NSCharacterSet alphanumericCharacterSet]; 81 while (![alphanumericCharacterSet characterIsMember: [string characterAtIndex: selStart]]) { 81 unichar opening, closing; 82 while (![alphanumericCharacterSet characterIsMember: 83 (opening = [string characterAtIndex: selStart])]) { 84 closing = [string characterAtIndex: selEnd - 1]; 85 if ((opening == '(' && closing == ')') || 86 (opening == '{' && closing == '}') || 87 (opening == '[' && closing == ']')) { 88 selEnd--; 89 } 82 90 selStart++; 83 91 NSCAssert(selStart < selEnd, @"No URL is selected"); -
trunk/ICeCoffEE/ICeCoffEE/urls.plist
r388 r473 81 81 82 82 { 83 uri = "foo"; 84 text = "blah blah |(foo)| blah blah"; 85 }, 86 87 { 88 uri = "foo"; 89 text = "blah blah |(foo)|! blah blah"; 90 }, 91 92 { 83 93 uri = "telnet:foo"; 84 94 text = "foo bar baz|[telnet:foo]|baz bar foo";
Note:
See TracChangeset
for help on using the changeset viewer.