From 95e994ab3817b3803f0d25b10423de4ef74508d6 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 11 Sep 2023 13:15:45 +0900 Subject: Add more shebangs to languages --- languages.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/languages.toml b/languages.toml index 4d1e6fe0..85cc95d4 100644 --- a/languages.toml +++ b/languages.toml @@ -587,7 +587,7 @@ scope = "source.ts" injection-regex = "(ts|typescript)" file-types = ["ts", "mts", "cts"] language-id = "typescript" -shebangs = [] +shebangs = ["deno", "ts-node"] roots = [] language-servers = [ "typescript-language-server" ] indent = { tab-width = 2, unit = " " } @@ -821,6 +821,7 @@ name = "julia" scope = "source.julia" injection-regex = "julia" file-types = ["jl"] +shebangs = ["julia"] roots = ["Manifest.toml", "Project.toml"] comment-token = "#" language-servers = [ "julia" ] @@ -834,7 +835,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-julia", rev = "8fb3 name = "java" scope = "source.java" injection-regex = "java" -file-types = ["java"] +file-types = ["java", "jav"] roots = ["pom.xml", "build.gradle", "build.gradle.kts"] language-servers = [ "jdtls" ] indent = { tab-width = 2, unit = " " } @@ -874,7 +875,7 @@ name = "ocaml" scope = "source.ocaml" injection-regex = "ocaml" file-types = ["ml"] -shebangs = [] +shebangs = ["ocaml", "ocamlrun", "ocamlscript"] roots = [] comment-token = "(**)" language-servers = [ "ocamllsp" ] @@ -1824,6 +1825,7 @@ name = "scheme" scope = "source.scheme" injection-regex = "scheme" file-types = ["ss", "scm"] +shebangs = ["scheme", "guile", "chicken"] roots = [] comment-token = ";" indent = { tab-width = 2, unit = " " } -- cgit v1.2.3-70-g09d2