Skip to content

Commit

Permalink
Merge pull request #59 from rolandleth/variable-coloring-for-swift
Browse files Browse the repository at this point in the history
self.property coloring for Swift.
  • Loading branch information
kolinkrewinkel committed Aug 10, 2015
2 parents cb8abcb + 570b20b commit 24db437
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ - (NSColor *)ply_colorAtCharacterIndex:(unsigned long long)index effectiveRange:
{
long long nodeType = [self nodeTypeAtCharacterIndex:newRange.location effectiveRange:effectiveRange context:context];

if (nodeType == 9)
if (nodeType == [DVTSourceNodeTypes registerNodeTypeNamed:@"xcode.syntax.identifier.variable"] ||
nodeType == [DVTSourceNodeTypes registerNodeTypeNamed:@"xcode.syntax.identifier.constant"] ||
nodeType == [DVTSourceNodeTypes registerNodeTypeNamed:@"xcode.syntax.identifier"])
{
PLYMockSwift *fauxSwiftService = (PLYMockSwift *)self.languageService;
NSRange funcDefinitionRange = [fauxSwiftService methodDefinitionRangeAtIndex:newRange.location];
Expand Down

0 comments on commit 24db437

Please sign in to comment.