-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
AWK support #3528
AWK support #3528
Conversation
ath3
commented
Aug 24, 2022
•
edited
Loading
edited
3aff5c6
to
4c188e6
Compare
I think we should be able to inject awk into bash. Something like this? ; runtime/queries/bash/injections.scm
(command
name: (command_name (word) @_command)
argument: (raw_string) @injection.content
(#eq? @_command "awk")
(#set! injection.language "awk")) |
Good idea, should we also support shell scripts calling nawk and gawk specifically? ; runtime/queries/bash/injections.scm
(command
name: (command_name (word) @_command)
argument: (raw_string) @injection.content
(#match? @_command "^[gn]?awk$")
(#set! injection.language "awk")) |
Thank you! |
@ath3 could you add install instructions to https://github.com/helix-editor/helix/wiki/How-to-install-the-default-language-servers ? |
done! |
@ath3 Nice one :) |