Files
SwiftLint/Source/SwiftLintFramework/Extensions/SyntaxKind+SwiftLint.swift
T
2016-01-14 20:24:47 -08:00

20 lines
446 B
Swift

//
// SyntaxKind+SwiftLint.swift
// SwiftLint
//
// Created by JP Simard on 2015-11-17.
// Copyright © 2015 Realm. All rights reserved.
//
import SourceKittenFramework
extension SyntaxKind {
static func commentAndStringKinds() -> [SyntaxKind] {
return commentKinds() + [.String]
}
static func commentKinds() -> [SyntaxKind] {
return [.Comment, .CommentMark, .CommentURL, .DocComment, .DocCommentField]
}
}