twostraws / Sourceful

A syntax highlighting source editor for iOS and macOS using UITextView and NSTextView.

Home Page:https://www.hackingwithswift.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing / incorrect syntax highlighting

HassanTaleb90 opened this issue Β· comments

Hi! There is a lot of missing / incorrect syntax highlighting.
Is there a way to use the swift tree sitter instead of Regex used in Swift Lexer?

It would be possible to use swift tree sitter (assuming this is the one). However, switching out the parser would require a full rewrite of the interactions between the parser and the highlighter.

commented

@HassanTaleb90 I recently found https://github.com/simonbs/Runestone which uses TreeSitter – worthy alternative πŸ‘πŸ»

@HassanTaleb90 I recently found https://github.com/simonbs/Runestone which uses TreeSitter – worthy alternative πŸ‘πŸ»

Runestone is a good alternative but it doesn't have the "Placeholder" feature that I need in my app.

commented

@HassanTaleb90 I recently found https://github.com/simonbs/Runestone which uses TreeSitter – worthy alternative πŸ‘πŸ»

Runestone is a good alternative but it doesn't have the "Placeholder" feature that I need in my app.

I'd have thought that was pretty easy to add yourself, and it has everything else I guess?