Improve TypeScript shebang detection (#31437)
Closes #13981 Release Notes: - Improved TypeScript shebang detection
This commit is contained in:
@@ -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 = ";:.,=}])>"
|
||||
|
||||
Reference in New Issue
Block a user