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

bash: wrong indent with bash functions #5087

Closed
rumpelsepp opened this issue Dec 9, 2022 · 1 comment · Fixed by #5149
Closed

bash: wrong indent with bash functions #5087

rumpelsepp opened this issue Dec 9, 2022 · 1 comment · Fixed by #5149
Labels
A-language-support Area: Support for programming/text languages C-bug Category: This is a bug

Comments

@rumpelsepp
Copy link

Summary

In bash, the indentation is wrong when you define functions.

Line 2 should be indented by one more level.

image

Reproduction Steps

Define a function and use o.

Helix log

Not relevant.

Platform

Linux

Terminal Emulator

gnome-console

Helix Version

96ff64a

@rumpelsepp rumpelsepp added the C-bug Category: This is a bug label Dec 9, 2022
@kirawi kirawi added the A-language-support Area: Support for programming/text languages label Dec 9, 2022
@archseer
Copy link
Member

bash has no indentation queries defined yet: https://github.com/helix-editor/helix/tree/master/runtime/queries/bash

If you're interested it shouldn't be too hard to contribute https://docs.helix-editor.com/guides/indent.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants