CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
514 stars 80 forks source link

Make JSDoc Highlight as Comments #228

Closed thecoolwinter closed 8 months ago

thecoolwinter commented 8 months ago

Description

Makes JSDocs highlight as comments. Because they're injected as a different language they don't get captured normally. This is the only language we have to handle this in so it's hard-coded in the TreeSitterClient.

Also adds a quick check to prevent potential recursive cursor notifications using SwiftUI.

Related Issues

Checklist

Screenshots

Screenshot 2024-02-02 at 7 37 19 PM