Open erf opened 7 months ago
and this case: JetBrains IDEA:
Zed:
Just to add to this. I noticed when I have const on something it is highlighted correctly but not when const is missing:
Yes please
Is this issue ready to use guys ?
The upstream's, highlights.scm has seen a fair amount of improvements since dart was originally implemented within zed
I might suggest just updating the highlights.scm file which is specified over here, with what UserNobody14/tree-sitter-dart is using
Syntax highlighting for the provided example, on the latest changes, looks like the following:
@matthewnitschke I tried to copy that highlights.scm file to
Library/Application Support/Zed/extensions/installed/dart/languages/dart/
but that just made the syntax highlighting very minimal like this:
@erf Ah shoot, that's unfortunate, zed must implement differences from what tree-sitter's default highlighting implements
My above example is the output of just running tree-sitter highlight ./your_file.dart
Looking at the original PR that introduced dart, some modifications must be necessary: https://github.com/zed-industries/zed/pull/7220#discussion_r1486572158 (specifically updating @function
to @function.method
, and maybe some of the other updates on what max suggested)
Check for existing issues
Describe the feature
Awesome to have Dart support in https://github.com/zed-industries/zed/pull/7220 !
I did notice however that the syntax highlighting is somewhat lacking compared to VSCode as seen in these screenshots:
VSCode
Zed
Would it be possible to improve this?
Hope you don't mind if i ping you in this issue @agent3bood as you made the initial Dart PR
If applicable, add mockups / screenshots to help present your vision of the feature
No response