mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
20 lines
446 B
Swift
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]
|
|
}
|
|
}
|