Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 8, 2024
1 parent 44be759 commit ef49818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
24 changes: 0 additions & 24 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,30 +299,6 @@ module.exports = grammar({

shebang: ($) => prec.left(seq(/#!.*/, optional($._newline))),

// prec(
// 4,
// seq(
// // token.immediate(
// // /\s*#!.*/,
// // choice(
// // prec(
// // 2,
// // token.immediate(
// // $.shebang_language,
// // // seq(/\S*bin\S*[/ ]/, $.shebang_language, optional(/.+/)),
// // ),
// // ),
// // // /.*/,
// // ),
// // ),
// /#!.*/,
// $._newline,
// ),
// ),

shebang_language: ($) => /.+/,
///\S+/,

// `# ...` comment
comment: ($) => seq(/#.*/, $._newline),

Expand Down
5 changes: 3 additions & 2 deletions test/highlight/injections.just
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ localhost := `if [ -f "foo" ]; then; echo hi; fi`
# <- variable
# ^^ operator
# ^ punctuation.special
# ^ @injection.content
# ^ punctuation.special

# interpolation within injection
Expand Down Expand Up @@ -49,4 +48,6 @@ perl_shebang:
# Print out the file name and path
print "$file\n";
}


0 comments on commit ef49818

Please sign in to comment.