Commit 71df242
broke syntax highlighting for bash
#12446
Unanswered
arut-plus
asked this question in
Troubleshooting
Replies: 1 comment 3 replies
-
Please could you give an example of a file that breaks the syntax highlighting? It seems like your bash grammar is old and does not support "ansi_c_string", it is working fine for me built from source. Did you follow the advice of the error message?
echo Hello $'\t' World |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
No code highlighting for bash due to changes in the runtime/queries/bash/highlights.scm file because of this commit: 71df242
I undid the changes that were made in commit (71df242) and the code highlighting for bash came back.
Reproduction Steps
No response
Helix log
~/.cache/helix/helix.log
2025-01-07T14:34:54.911 helix_core::syntax [ERROR] Could not parse queries for language "bash". Are your grammars out of sync? Try running 'hx --grammar fetch' and 'hx --grammar build'. This query could not be parsed: QueryError { row: 3, column: 3, offset: 31, message: "ansi_c_string", kind: NodeType }
2025-01-07T14:36:45.065 helix_core::syntax [ERROR] Could not parse queries for language "bash". Are your grammars out of sync? Try running 'hx --grammar fetch' and 'hx --grammar build'. This query could not be parsed: QueryError { row: 9, column: 3, offset: 99, message: "heredoc_end", kind: NodeType }
Platform
Linux
Terminal Emulator
alacritty 0.14.0
Installation Method
source
Helix Version
helix 25.01 (e698b20)
Beta Was this translation helpful? Give feedback.
All reactions