Skip to content

Commit

Permalink
Merge pull request #18 from NaifAlrashed/main
Browse files Browse the repository at this point in the history
Add async await syntax
  • Loading branch information
twostraws authored Jun 21, 2021
2 parents 88f70bc + 54d5d53 commit 55ec0a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Sourceful/Languages/SwiftLexer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SwiftLexer: SourceCodeRegexLexer {

generators.append(regexGenerator("\\.[A-Za-z_]+\\w*", tokenType: .identifier))

let keywords = "as associatedtype break case catch class continue convenience default defer deinit else enum extension fallthrough false fileprivate final for func get guard if import in init inout internal is lazy let mutating nil nonmutating open operator override private protocol public repeat required rethrows return required self set static struct subscript super switch throw throws true try typealias unowned var weak where while".components(separatedBy: " ")
let keywords = "as associatedtype async await break case catch class continue convenience default defer deinit else enum extension fallthrough false fileprivate final for func get guard if import in init inout internal is lazy let mutating nil nonmutating open operator override private protocol public repeat required rethrows return required self set static struct subscript super switch throw throws true try typealias unowned var weak where while".components(separatedBy: " ")

generators.append(keywordGenerator(keywords, tokenType: .keyword))

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sourceful/View/InnerTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import CoreGraphics
import UIKit
#endif

protocol InnerTextViewDelegate: class {
protocol InnerTextViewDelegate: AnyObject {
func didUpdateCursorFloatingState()
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sourceful/View/SyntaxTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import AppKit
import UIKit
#endif

public protocol SyntaxTextViewDelegate: class {
public protocol SyntaxTextViewDelegate: AnyObject {

func didChangeText(_ syntaxTextView: SyntaxTextView)

Expand Down

0 comments on commit 55ec0a3

Please sign in to comment.