Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[swift] highlighting issue after return statement #3680

Closed
vincentwoo opened this issue Dec 4, 2015 · 0 comments
Closed

[swift] highlighting issue after return statement #3680

vincentwoo opened this issue Dec 4, 2015 · 0 comments

Comments

@vincentwoo
Copy link
Contributor

(Now that Swift is OSS, I'm starting to play with it in CodeMirror)

Placing the following into https://codemirror.net/mode/swift/index.html shows that highlighting doesn't seem to understand the string following return is a string.

func greet(name: String, day: String) -> String {
    print("Hello \(name), today is \(day).")
}

func greet(name: String, day: String) -> String {
    return "Hello \(name), today is \(day)."
}
@marijnh marijnh closed this as completed in f89a8fa Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant