Improve TypeScript shebang detection (#31437)
Closes #13981 Release Notes: - Improved TypeScript shebang detection
This commit is contained in:
parent
a78563b80b
commit
32214abb64
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
name = "TypeScript"
|
||||
grammar = "typescript"
|
||||
path_suffixes = ["ts", "cts", "mts"]
|
||||
first_line_pattern = '^#!.*\b(?:deno run|ts-node|bun|tsx)\b'
|
||||
first_line_pattern = '^#!.*\b(?:deno run|ts-node|bun|tsx|[/ ]node)\b'
|
||||
line_comments = ["// "]
|
||||
block_comment = ["/*", "*/"]
|
||||
autoclose_before = ";:.,=}])>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue