Skip to content

Commit

Permalink
Try to parse shebang lines with a variable
Browse files Browse the repository at this point in the history
I believe this fixes this issue:
#175
  • Loading branch information
leon-barrett committed Oct 15, 2024
1 parent 3030c5d commit 06f7884
Show file tree
Hide file tree
Showing 6 changed files with 8,766 additions and 1,232 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ module.exports = grammar({
),

// Fallback shebang, any string
_opaque_shebang: (_) => /[^/]+/,
_opaque_shebang: (_) => /[^/\n]+/,

// string : STRING
// | INDENTED_STRING
Expand Down
3 changes: 0 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ make_timeout_fn := '''timeout () { perl -e 'alarm shift; exec @ARGV' "$@"; }'''
errors_expected := '''
test/timeout-1aa6bf37e914715f4aa49e6cf693f7abf81aaf8e
test/crash-4b0422bb457cd6b39d1f8549f6739830254718a0z-assertion

# FIXME: xfail files, these should parse correctly
repositories/just/examples/kitchen-sink.just
'''
# Files used for testing that Just itself might not understand
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 06f7884

Please sign in to comment.