Skip to content

Update indent queries to use Zed's indent/outdent syntax#30

Merged
MrSubidubi merged 2 commits into
zed-extensions:mainfrom
vitallium:vs/fix-indents-queries
Dec 19, 2025
Merged

Update indent queries to use Zed's indent/outdent syntax#30
MrSubidubi merged 2 commits into
zed-extensions:mainfrom
vitallium:vs/fix-indents-queries

Conversation

@vitallium
Copy link
Copy Markdown
Contributor

Zed does not support Neovim’s indentation captures:

  • indent.begin
  • indent.end
  • indent.branch

Such queries produce warnings and errors in SQL lang:

unrecognized capture name 'indent.begin'
# or
missing required capture(s) in SQL indents TreeSitter query: indent

To resolve this, the unsupported syntax should be replaced as follows:

  • indent.begin -> indent
  • indent.end -> a combination of end and indent
  • indent.branch -> outdent

Zed does not support Neovim’s indentation captures:

- `indent.begin`
- `indent.end`
- `indent.branch`

Such queries produce warnings and errors in SQL lang:

```plaintext
unrecognized capture name 'indent.begin'
# or
missing required capture(s) in SQL indents TreeSitter query: indent
```

To resolve this, the unsupported syntax should be replaced as follows:

- `indent.begin` -> `indent`
- `indent.end` -> a combination of `end` and `indent`
- `indent.branch` -> `outdent`
@cla-bot cla-bot Bot added the cla-signed label Dec 5, 2025
Copy link
Copy Markdown
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Thank you!

@MrSubidubi MrSubidubi merged commit 3cfbd7c into zed-extensions:main Dec 19, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants