aerobounce / Swift-Next

Swift syntax package in async/await era, with extra features, for Sublime Text.
MIT License
37 stars 6 forks source link

[Syntax] /// Comment with 3 slashes not detected and breaks rest of file #2

Closed tokyovigilante closed 1 year ago

tokyovigilante commented 1 year ago

Describe the syntax error source.swift text.plain detected rather than source.swift comment.line.double-slash.swift punctuation.definition.comment.begin.swift Deleting third slash immediately restores correct behaviour.

Expected behavior Correctly rendered function below comment.

Minimum Reproducible Snippet of Swift code

/// Compute the prefix sum of `seq`.
public func scan<S : Sequence, U>(_ seq: S, _ initial: U, _ combine: (U, S.Iterator.Element) -> U) -> [U] {
    var result: [U] = []
    return result
}

Environment (please complete the following information):

aerobounce commented 1 year ago

Thanks for reporting, pushed some changes I had in local. Should be better now 👍

tokyovigilante commented 1 year ago

Thanks, fixed!