Fixed comments for keyword and preprocessing (#55)

This commit is contained in:
Apokrupto 2019-03-12 11:04:21 +00:00 committed by John Sundell
parent 43f163bebc
commit 9485a4e762

View File

@ -8,7 +8,7 @@ import Foundation
/// Enum defining the possible types of tokens that can be highlighted /// Enum defining the possible types of tokens that can be highlighted
public enum TokenType: Hashable { public enum TokenType: Hashable {
/// A keyword, such as `if`, `class` or `let` /// A keyword, such as `if`, `class`, `let` or attributes such as @available
case keyword case keyword
/// A token that is part of a string literal /// A token that is part of a string literal
case string case string
@ -24,7 +24,7 @@ public enum TokenType: Hashable {
case property case property
/// A symbol being accessed through dot notation, such as `.myCase` /// A symbol being accessed through dot notation, such as `.myCase`
case dotAccess case dotAccess
/// A preprocessing symbol, such as `#if` or `@available` /// A preprocessing symbol, such as `#if`
case preprocessing case preprocessing
/// A custom token type, containing an arbitrary string /// A custom token type, containing an arbitrary string
case custom(String) case custom(String)