Extended OakTextView API

Added `scopeAsString` method to retrieve current scope as NSString
This commit is contained in:
Sergey Chikuyonok
2013-04-17 20:31:13 +04:00
committed by Allan Odgaard
parent 34d92253dd
commit 72dd8e2047

View File

@@ -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])