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

Fixed keyword highlighting #64

Merged

Conversation

matthewnitschke
Copy link
Contributor

Current highlight.scm queries were fairly broken for keywords. This PR is the result of re-evaluating the keywords available in dart, and updating/fixing existing highlight.scm and grammar.js implementations.

comparison

@TimWhiting TimWhiting self-requested a review March 31, 2024 22:07
{
"[dart]": {
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existence of this field was causing formatting to get all messed up within the test/highlight/keywords.dart file, causing invalid failures

I figured it would be better, and more project idiomatic, to just git ignore this, and let individual devs decide how they want to configure vscode

@@ -1,3 +1,5 @@
/// <reference types="tree-sitter-cli/dsl" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just lets us use typing/intellisense within this file

@TimWhiting
Copy link
Collaborator

Looks good to me!

@TimWhiting TimWhiting merged commit 7861a48 into UserNobody14:master Apr 2, 2024
3 checks passed
@TimWhiting
Copy link
Collaborator

TimWhiting commented Apr 2, 2024

Thanks for all the additional info, and the contribution!

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

Successfully merging this pull request may close these issues.

2 participants