mirror of
https://github.com/textmate/textmate.git
synced 2026-01-20 20:27:59 -05:00
Extended OakTextView API
Added `scopeAsString` method to retrieve current scope as NSString
This commit is contained in:
committed by
Allan Odgaard
parent
34d92253dd
commit
72dd8e2047
@@ -2234,6 +2234,11 @@ static char const* kOakMenuItemTitle = "OakMenuItemTitle";
|
||||
return res = editor->scope(to_s([self scopeAttributes]));
|
||||
}
|
||||
|
||||
- (NSString*)scopeAsString // Used by https://github.com/emmetio/Emmet.tmplugin
|
||||
{
|
||||
return [NSString stringWithCxxString:to_s([self scopeContext].right)];
|
||||
}
|
||||
|
||||
- (void)setSelectionString:(NSString*)aSelectionString
|
||||
{
|
||||
if([aSelectionString isEqualToString:selectionString])
|
||||
|
||||
Reference in New Issue
Block a user