Skip to content

Commit

Permalink
Revert "Fix ignore identifiers starting with '@'"
Browse files Browse the repository at this point in the history
This reverts commit 5a845d1.
  • Loading branch information
jpsim committed Apr 18, 2016
1 parent d94861e commit f0bb067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SourceKittenFramework/SyntaxMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public struct SyntaxMap {
return token.type == SyntaxKind.Identifier.rawValue &&
// ignore identifiers starting with '@' because they may be placed between
// declarations and their documentation.
!(string?.substringWithByteRange(start: token.offset, length: token.length)?.hasPrefix("@") ?? true)
string?.rangeOfString("@", options: [], range: NSRange(location: token.offset, length: 1)) == nil
}
let isDocOrIdentifier = { isDoc($0) || isIdentifier($0) }

Expand Down

0 comments on commit f0bb067

Please sign in to comment.