From 9485a4e76269e2c30cee073f11cda90241e94e68 Mon Sep 17 00:00:00 2001 From: Apokrupto Date: Tue, 12 Mar 2019 11:04:21 +0000 Subject: [PATCH] Fixed comments for keyword and preprocessing (#55) --- Sources/Splash/Tokenizing/TokenType.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Splash/Tokenizing/TokenType.swift b/Sources/Splash/Tokenizing/TokenType.swift index 556b5cd..8faa0a4 100644 --- a/Sources/Splash/Tokenizing/TokenType.swift +++ b/Sources/Splash/Tokenizing/TokenType.swift @@ -8,7 +8,7 @@ import Foundation /// Enum defining the possible types of tokens that can be highlighted 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 /// A token that is part of a string literal case string @@ -24,7 +24,7 @@ public enum TokenType: Hashable { case property /// A symbol being accessed through dot notation, such as `.myCase` case dotAccess - /// A preprocessing symbol, such as `#if` or `@available` + /// A preprocessing symbol, such as `#if` case preprocessing /// A custom token type, containing an arbitrary string case custom(String)