diff --git a/grammars/tree-sitter-bash.cson b/grammars/tree-sitter-bash.cson index 4f74335..a65b19e 100644 --- a/grammars/tree-sitter-bash.cson +++ b/grammars/tree-sitter-bash.cson @@ -12,7 +12,7 @@ injectionRegex: '^(bash|sh|BASH|SH)$' firstLineRegex: [ # shebang line - '^#!.*\\b(bash|sh)\\r?\\n' + '^#!.*\\b(bash|sh)(\\r?\\n|\\s)' # vim modeline 'vim\\b.*\\bset\\b.*\\b(filetype|ft|syntax)=(sh|bash)'