Skip to content

feat(supercollider): added supercollider support#657

Open
elgiano wants to merge 1 commit intonvim-treesitter:masterfrom
elgiano:topic/supercollider
Open

feat(supercollider): added supercollider support#657
elgiano wants to merge 1 commit intonvim-treesitter:masterfrom
elgiano:topic/supercollider

Conversation

@elgiano
Copy link
Copy Markdown

@elgiano elgiano commented Feb 20, 2026

Updated queries after parser breaking change

@elgiano elgiano force-pushed the topic/supercollider branch from 49efda7 to a9850fc Compare February 20, 2026 14:48
@clason clason force-pushed the topic/supercollider branch from a9850fc to 8f3be17 Compare March 6, 2026 17:13
@clason
Copy link
Copy Markdown
Contributor

clason commented Mar 6, 2026

This is a feat (newly supported language), not a fix, and also needs to update the list of supported languages.

@clason
Copy link
Copy Markdown
Contributor

clason commented Mar 6, 2026

(I already rebased ;))

@lewis6991
Copy link
Copy Markdown
Member

lewis6991 commented Mar 6, 2026

Just doing a change so README updates are required


EDIT: #659

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new queries/supercollider/context.scm file to enable treesitter-context support for the SuperCollider language. The file defines which tree-sitter node types should be captured as context (e.g., class definitions, function blocks, variable definitions) so that relevant scope information is shown when scrolling through SuperCollider code.

Changes:

  • New queries/supercollider/context.scm file listing SuperCollider tree-sitter node types to capture as @context

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +15
[
(function_block)
(binary_expression)
(collection)
(indexed_collection)
(parameter_call_list)
(function_call)
(class_def)
(classvar)
(const)
(instance_var)
(variable_definition)
(variable_definition_sequence)
(code_block)
] @context
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

According to CONTRIBUTING.md (lines 58–78), a PR for supporting a new language requires both:

  1. queries/[LANG]/context.scm (provided in this PR ✅)
  2. A test file test/lang/test.sc (or test/lang/test.scd) with code examples annotated with {{TEST}}, {{CONTEXT}}, and {{CURSOR}} directives ❌

No such test file exists for supercollider in test/lang/. The test infrastructure (test/contexts_spec.lua) will detect this as "No test file" and skip with a pending status, meaning no runtime coverage of the query is ever exercised. Please add a test file with representative SuperCollider code and the appropriate test markers so the context queries can be validated end-to-end.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,15 @@
[
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

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

The PR title describes this as "update queries after breaking change", but the diff shows this file is being created fresh (diff starts from line 0, i.e., @@ -0,0 +1,15 @@). There is no previous version of queries/supercollider/context.scm in the repository — this is a brand new addition. The PR title and description should reflect that this is a new query file being added rather than an update to an existing one, or alternatively clarify what was previously attempted that is now being fixed.

Copilot uses AI. Check for mistakes.
@elgiano elgiano force-pushed the topic/supercollider branch from 8a29917 to 13afabb Compare March 6, 2026 19:53
@elgiano elgiano changed the title fix(supercollider): update queries after breaking change feat(supercollider): added supercollider support Mar 6, 2026
@elgiano
Copy link
Copy Markdown
Author

elgiano commented Mar 6, 2026

I've renamed commit and pr messages, updated the README, and added some tests. I haven't run the tests yet though.

EDIT: I've seen they fail in CI, I'll look more into them

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.

4 participants