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

Incorrect grammar #2

Open
abarisain opened this issue Nov 14, 2020 · 1 comment
Open

Incorrect grammar #2

abarisain opened this issue Nov 14, 2020 · 1 comment

Comments

@abarisain
Copy link

abarisain commented Nov 14, 2020

Hello!

Thanks for the extension, it works great :) Syntax highlighting shows a lot of gray (I use nested structs which are colored in Xcode/VSCode), but I don't know if it's my Nova settings or if the tokenizer isn't getting data from sourcekit just yet.

Anyway, I'm running into a little issue where multiline strings aren't highlighted properly. The other Swift (syntax only) extension does it properly.

Here's how to trigger the bug:

struct Test {
  func str(_ string: String) {}
  
  func bar() {
      str("""
              foo
      """)
  }
}

Here's how your extension renders it

Screenshot 2020-11-14 at 19 04 13

And here is how the other one does:

Screenshot 2020-11-14 at 19 04 34

Thanks again for your work: the extension is still very usable.

Have a nice day!

@bsneed
Copy link
Owner

bsneed commented Nov 17, 2020

Hmm, interesting. I'll look into this and see if maybe one of the additions I made broke something. Thanks for the report!

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

2 participants