mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 11:27:46 +03:00
toggling of block comments (#4718)
This commit is contained in:
parent
f46a09ab4f
commit
26b3dc29be
11 changed files with 568 additions and 29 deletions
|
@ -191,7 +191,12 @@ injection-regex = "rust"
|
|||
file-types = ["rs"]
|
||||
roots = ["Cargo.toml", "Cargo.lock"]
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
comment-tokens = ["//", "///", "//!"]
|
||||
block-comment-tokens = [
|
||||
{ start = "/*", end = "*/" },
|
||||
{ start = "/**", end = "*/" },
|
||||
{ start = "/*!", end = "*/" },
|
||||
]
|
||||
language-servers = [ "rust-analyzer" ]
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
persistent-diagnostic-sources = ["rustc", "clippy"]
|
||||
|
@ -283,6 +288,7 @@ injection-regex = "protobuf"
|
|||
file-types = ["proto"]
|
||||
language-servers = [ "bufls", "pbkit" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -326,6 +332,7 @@ injection-regex = "mint"
|
|||
file-types = ["mint"]
|
||||
shebangs = []
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "mint" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -408,6 +415,7 @@ scope = "source.c"
|
|||
injection-regex = "c"
|
||||
file-types = ["c"] # TODO: ["h"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "clangd" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -444,6 +452,7 @@ scope = "source.cpp"
|
|||
injection-regex = "cpp"
|
||||
file-types = ["cc", "hh", "c++", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino", "C", "H", "cu", "cuh", "cppm", "h++", "ii", "inl", { glob = ".hpp.in" }, { glob = ".h.in" }]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "clangd" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -491,6 +500,7 @@ injection-regex = "c-?sharp"
|
|||
file-types = ["cs", "csx", "cake"]
|
||||
roots = ["sln", "csproj"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
language-servers = [ "omnisharp" ]
|
||||
|
||||
|
@ -549,6 +559,7 @@ file-types = ["go"]
|
|||
roots = ["go.work", "go.mod"]
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "gopls", "golangci-lint-lsp" ]
|
||||
# TODO: gopls needs utf-8 offsets?
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
@ -614,6 +625,7 @@ scope = "source.gotmpl"
|
|||
injection-regex = "gotmpl"
|
||||
file-types = ["gotmpl"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "gopls" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -643,6 +655,7 @@ language-id = "javascript"
|
|||
file-types = ["js", "mjs", "cjs", "rules", "es6", "pac", { glob = "jakefile" }]
|
||||
shebangs = ["node"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -669,6 +682,7 @@ injection-regex = "jsx"
|
|||
language-id = "javascriptreact"
|
||||
file-types = ["jsx"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "javascript"
|
||||
|
@ -680,6 +694,8 @@ injection-regex = "(ts|typescript)"
|
|||
file-types = ["ts", "mts", "cts"]
|
||||
language-id = "typescript"
|
||||
shebangs = ["deno", "ts-node"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -693,6 +709,8 @@ scope = "source.tsx"
|
|||
injection-regex = "(tsx)" # |typescript
|
||||
language-id = "typescriptreact"
|
||||
file-types = ["tsx"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -705,6 +723,7 @@ name = "css"
|
|||
scope = "source.css"
|
||||
injection-regex = "css"
|
||||
file-types = ["css", "scss"]
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "vscode-css-language-server" ]
|
||||
auto-format = true
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
@ -718,6 +737,7 @@ name = "scss"
|
|||
scope = "source.scss"
|
||||
injection-regex = "scss"
|
||||
file-types = ["scss"]
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "vscode-css-language-server" ]
|
||||
auto-format = true
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
@ -731,6 +751,7 @@ name = "html"
|
|||
scope = "text.html.basic"
|
||||
injection-regex = "html"
|
||||
file-types = ["html", "htm", "shtml", "xhtml", "xht", "jsp", "asp", "aspx", "jshtm", "volt", "rhtml"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
language-servers = [ "vscode-html-language-server" ]
|
||||
auto-format = true
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
@ -901,6 +922,7 @@ injection-regex = "php"
|
|||
file-types = ["php", "inc", "php4", "php5", "phtml", "ctp"]
|
||||
shebangs = ["php"]
|
||||
roots = ["composer.json", "index.php"]
|
||||
comment-token = "//"
|
||||
language-servers = [ "intelephense" ]
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
|
||||
|
@ -913,6 +935,7 @@ name = "twig"
|
|||
scope = "source.twig"
|
||||
injection-regex = "twig"
|
||||
file-types = ["twig"]
|
||||
block-comment-tokens = { start = "{#", end = "#}" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -966,6 +989,7 @@ injection-regex = "lean"
|
|||
file-types = ["lean"]
|
||||
roots = [ "lakefile.lean" ]
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "/-", end = "-/" }
|
||||
language-servers = [ "lean" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -992,6 +1016,7 @@ file-types = ["jl"]
|
|||
shebangs = ["julia"]
|
||||
roots = ["Manifest.toml", "Project.toml"]
|
||||
comment-token = "#"
|
||||
block-comment-tokens = { start = "#=", end = "=#" }
|
||||
language-servers = [ "julia" ]
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
|
||||
|
@ -1055,6 +1080,7 @@ scope = "source.ocaml"
|
|||
injection-regex = "ocaml"
|
||||
file-types = ["ml"]
|
||||
shebangs = ["ocaml", "ocamlrun", "ocamlscript"]
|
||||
block-comment-tokens = { start = "(*", end = "*)" }
|
||||
comment-token = "(**)"
|
||||
language-servers = [ "ocamllsp" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
@ -1074,6 +1100,7 @@ name = "ocaml-interface"
|
|||
scope = "source.ocaml.interface"
|
||||
file-types = ["mli"]
|
||||
shebangs = []
|
||||
block-comment-tokens = { start = "(*", end = "*)" }
|
||||
comment-token = "(**)"
|
||||
language-servers = [ "ocamllsp" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
@ -1096,6 +1123,7 @@ file-types = ["lua"]
|
|||
shebangs = ["lua", "luajit"]
|
||||
roots = [".luarc.json", ".luacheckrc", ".stylua.toml", "selene.toml", ".git"]
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "--[[", end = "--]]" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "lua-language-server" ]
|
||||
|
||||
|
@ -1121,6 +1149,7 @@ scope = "source.vue"
|
|||
injection-regex = "vue"
|
||||
file-types = ["vue"]
|
||||
roots = ["package.json"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "vuels" ]
|
||||
|
||||
|
@ -1148,6 +1177,7 @@ injection-regex = "haskell"
|
|||
file-types = ["hs", "hs-boot"]
|
||||
roots = ["Setup.hs", "stack.yaml", "cabal.project"]
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "{-", end = "-}" }
|
||||
language-servers = [ "haskell-language-server" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -1173,6 +1203,7 @@ injection-regex = "purescript"
|
|||
file-types = ["purs"]
|
||||
roots = ["spago.yaml", "spago.dhall", "bower.json"]
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "{-", end = "-}" }
|
||||
language-servers = [ "purescript-language-server" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
auto-format = true
|
||||
|
@ -1227,6 +1258,7 @@ scope = "source.prolog"
|
|||
file-types = ["pl", "prolog"]
|
||||
shebangs = ["swipl"]
|
||||
comment-token = "%"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "swipl" ]
|
||||
|
||||
[[language]]
|
||||
|
@ -1246,6 +1278,7 @@ name = "cmake"
|
|||
scope = "source.cmake"
|
||||
file-types = ["cmake", { glob = "CMakeLists.txt" }]
|
||||
comment-token = "#"
|
||||
block-comment-tokens = { start = "#[[", end = "]]" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "cmake-language-server" ]
|
||||
injection-regex = "cmake"
|
||||
|
@ -1272,6 +1305,7 @@ name = "glsl"
|
|||
scope = "source.glsl"
|
||||
file-types = ["glsl", "vert", "tesc", "tese", "geom", "frag", "comp" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
injection-regex = "glsl"
|
||||
|
||||
|
@ -1309,6 +1343,7 @@ file-types = ["rkt", "rktd", "rktl", "scrbl"]
|
|||
shebangs = ["racket"]
|
||||
comment-token = ";"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
block-comment-tokens = { start = "#|", end = "|#" }
|
||||
language-servers = [ "racket" ]
|
||||
grammar = "scheme"
|
||||
|
||||
|
@ -1343,6 +1378,7 @@ name = "wgsl"
|
|||
scope = "source.wgsl"
|
||||
file-types = ["wgsl"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "wgsl_analyzer" ]
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
|
||||
|
@ -1389,6 +1425,7 @@ name = "tablegen"
|
|||
scope = "source.tablegen"
|
||||
file-types = ["td"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
injection-regex = "tablegen"
|
||||
|
||||
|
@ -1404,6 +1441,7 @@ file-types = ["md", "markdown", "mkd", "mdwn", "mdown", "markdn", "mdtxt", "mdte
|
|||
roots = [".marksman.toml"]
|
||||
language-servers = [ "marksman" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
|
||||
[[grammar]]
|
||||
name = "markdown"
|
||||
|
@ -1427,6 +1465,7 @@ file-types = ["dart"]
|
|||
roots = ["pubspec.yaml"]
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "dart" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -1440,6 +1479,7 @@ scope = "source.scala"
|
|||
roots = ["build.sbt", "build.sc", "build.gradle", "build.gradle.kts", "pom.xml", ".scala-build"]
|
||||
file-types = ["scala", "sbt", "sc"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "metals" ]
|
||||
|
||||
|
@ -1560,6 +1600,8 @@ scope = "source.graphql"
|
|||
injection-regex = "graphql"
|
||||
file-types = ["gql", "graphql", "graphqls"]
|
||||
language-servers = [ "graphql-language-service" ]
|
||||
comment-token = "#"
|
||||
block-comment-tokens = { start = "\"\"\"", end = "\"\"\"" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -1574,6 +1616,7 @@ file-types = ["elm"]
|
|||
roots = ["elm.json"]
|
||||
auto-format = true
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "{-", end = "-}" }
|
||||
language-servers = [ "elm-language-server" ]
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
|
||||
|
@ -1586,6 +1629,7 @@ name = "iex"
|
|||
scope = "source.iex"
|
||||
injection-regex = "iex"
|
||||
file-types = ["iex"]
|
||||
comment-token = "#"
|
||||
|
||||
[[grammar]]
|
||||
name = "iex"
|
||||
|
@ -1599,6 +1643,7 @@ file-types = ["res"]
|
|||
roots = ["bsconfig.json"]
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "rescript-language-server" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
|
@ -1635,6 +1680,7 @@ scope = "source.kotlin"
|
|||
file-types = ["kt", "kts"]
|
||||
roots = ["settings.gradle", "settings.gradle.kts"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
language-servers = [ "kotlin-language-server" ]
|
||||
|
||||
|
@ -1649,6 +1695,7 @@ injection-regex = "(hcl|tf|nomad)"
|
|||
language-id = "terraform"
|
||||
file-types = ["hcl", "tf", "nomad"]
|
||||
comment-token = "#"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "terraform-ls" ]
|
||||
auto-format = true
|
||||
|
@ -1663,6 +1710,7 @@ scope = "source.tfvars"
|
|||
language-id = "terraform-vars"
|
||||
file-types = ["tfvars"]
|
||||
comment-token = "#"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "terraform-ls" ]
|
||||
auto-format = true
|
||||
|
@ -1685,6 +1733,7 @@ scope = "source.sol"
|
|||
injection-regex = "(sol|solidity)"
|
||||
file-types = ["sol"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
language-servers = [ "solc" ]
|
||||
|
||||
|
@ -1713,6 +1762,7 @@ scope = "source.ron"
|
|||
injection-regex = "ron"
|
||||
file-types = ["ron"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -1754,6 +1804,7 @@ injection-regex = "(r|R)md"
|
|||
file-types = ["rmd", "Rmd"]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "markdown"
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
language-servers = [ "r" ]
|
||||
|
||||
[[language]]
|
||||
|
@ -1763,6 +1814,7 @@ injection-regex = "swift"
|
|||
file-types = ["swift"]
|
||||
roots = [ "Package.swift" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
auto-format = true
|
||||
language-servers = [ "sourcekit-lsp" ]
|
||||
|
||||
|
@ -1775,6 +1827,7 @@ name = "erb"
|
|||
scope = "text.html.erb"
|
||||
injection-regex = "erb"
|
||||
file-types = ["erb"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "embedded-template"
|
||||
|
||||
|
@ -1783,6 +1836,7 @@ name = "ejs"
|
|||
scope = "text.html.ejs"
|
||||
injection-regex = "ejs"
|
||||
file-types = ["ejs"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "embedded-template"
|
||||
|
||||
|
@ -1796,6 +1850,7 @@ scope = "source.eex"
|
|||
injection-regex = "eex"
|
||||
file-types = ["eex"]
|
||||
roots = ["mix.exs", "mix.lock"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -1808,6 +1863,7 @@ scope = "source.heex"
|
|||
injection-regex = "heex"
|
||||
file-types = ["heex"]
|
||||
roots = ["mix.exs", "mix.lock"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "elixir-ls" ]
|
||||
|
||||
|
@ -1820,6 +1876,7 @@ name = "sql"
|
|||
scope = "source.sql"
|
||||
file-types = ["sql", "dsql"]
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
injection-regex = "sql"
|
||||
|
||||
|
@ -1878,6 +1935,7 @@ scope = "source.vala"
|
|||
injection-regex = "vala"
|
||||
file-types = ["vala", "vapi"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "vala-language-server" ]
|
||||
|
||||
|
@ -1903,6 +1961,7 @@ scope = "source.devicetree"
|
|||
injection-regex = "(dtsi?|devicetree|fdt)"
|
||||
file-types = ["dts", "dtsi"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -1941,6 +2000,7 @@ file-types = ["odin"]
|
|||
roots = ["ols.json"]
|
||||
language-servers = [ "ols" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
formatter = { command = "odinfmt", args = [ "-stdin", "true" ] }
|
||||
|
||||
|
@ -1998,6 +2058,7 @@ roots = ["v.mod"]
|
|||
language-servers = [ "vlang-language-server" ]
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -2009,6 +2070,7 @@ name = "verilog"
|
|||
scope = "source.verilog"
|
||||
file-types = ["v", "vh", "sv", "svh"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "svlangserver" ]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
injection-regex = "verilog"
|
||||
|
@ -2045,6 +2107,7 @@ scope = "source.openscad"
|
|||
injection-regex = "openscad"
|
||||
file-types = ["scad"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "openscad-lsp" ]
|
||||
indent = { tab-width = 2, unit = "\t" }
|
||||
|
||||
|
@ -2109,6 +2172,7 @@ injection-regex = "idr"
|
|||
file-types = ["idr"]
|
||||
shebangs = []
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "{-", end = "-}" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "idris2-lsp" ]
|
||||
|
||||
|
@ -2144,6 +2208,7 @@ scope = "source.dot"
|
|||
injection-regex = "dot"
|
||||
file-types = ["dot"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
language-servers = [ "dot-language-server" ]
|
||||
|
||||
|
@ -2173,6 +2238,7 @@ scope = "source.slint"
|
|||
injection-regex = "slint"
|
||||
file-types = ["slint"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
language-servers = [ "slint-lsp" ]
|
||||
|
||||
|
@ -2222,6 +2288,7 @@ scope = "source.pascal"
|
|||
injection-regex = "pascal"
|
||||
file-types = ["pas", "pp", "inc", "lpr", "lfm"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "{", end = "}" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "pasls" ]
|
||||
|
||||
|
@ -2234,7 +2301,7 @@ name = "sml"
|
|||
scope = "source.sml"
|
||||
injection-regex = "sml"
|
||||
file-types = ["sml"]
|
||||
comment-token = "(*"
|
||||
block-comment-tokens = { start = "(*", end = "*)" }
|
||||
|
||||
[[grammar]]
|
||||
name = "sml"
|
||||
|
@ -2246,6 +2313,7 @@ scope = "source.jsonnet"
|
|||
file-types = ["libsonnet", "jsonnet"]
|
||||
roots = ["jsonnetfile.json"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "jsonnet-language-server" ]
|
||||
|
||||
|
@ -2258,6 +2326,7 @@ name = "astro"
|
|||
scope = "source.astro"
|
||||
injection-regex = "astro"
|
||||
file-types = ["astro"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
|
@ -2281,6 +2350,7 @@ source = { git = "https://github.com/vito/tree-sitter-bass", rev = "501133e260d7
|
|||
name = "wat"
|
||||
scope = "source.wat"
|
||||
comment-token = ";;"
|
||||
block-comment-tokens = { start = "(;", end = ";)" }
|
||||
file-types = ["wat"]
|
||||
|
||||
[[grammar]]
|
||||
|
@ -2291,6 +2361,7 @@ source = { git = "https://github.com/wasm-lsp/tree-sitter-wasm", rev = "2ca28a9f
|
|||
name = "wast"
|
||||
scope = "source.wast"
|
||||
comment-token = ";;"
|
||||
block-comment-tokens = { start = "(;", end = ";)" }
|
||||
file-types = ["wast"]
|
||||
|
||||
[[grammar]]
|
||||
|
@ -2302,6 +2373,7 @@ name = "d"
|
|||
scope = "source.d"
|
||||
file-types = [ "d", "dd" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
injection-regex = "d"
|
||||
indent = { tab-width = 4, unit = " "}
|
||||
language-servers = [ "serve-d" ]
|
||||
|
@ -2328,6 +2400,7 @@ name = "kdl"
|
|||
scope = "source.kdl"
|
||||
file-types = ["kdl"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
injection-regex = "kdl"
|
||||
|
||||
[[grammar]]
|
||||
|
@ -2398,6 +2471,7 @@ file-types = [
|
|||
"musicxml",
|
||||
"glif"
|
||||
]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[language.auto-pairs]
|
||||
|
@ -2437,6 +2511,7 @@ scope = "source.wit"
|
|||
injection-regex = "wit"
|
||||
file-types = ["wit"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[language.auto-pairs]
|
||||
|
@ -2501,6 +2576,7 @@ scope = "source.bicep"
|
|||
file-types = ["bicep"]
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 2, unit = " "}
|
||||
language-servers = [ "bicep-langserver" ]
|
||||
|
||||
|
@ -2513,6 +2589,8 @@ name = "qml"
|
|||
scope = "source.qml"
|
||||
file-types = ["qml"]
|
||||
language-servers = [ "qmlls" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
grammar = "qmljs"
|
||||
|
||||
|
@ -2552,6 +2630,7 @@ injection-regex = "pony"
|
|||
roots = ["corral.json", "lock.json"]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
|
||||
[[grammar]]
|
||||
name = "ponylang"
|
||||
|
@ -2563,6 +2642,7 @@ scope = "source.dhall"
|
|||
injection-regex = "dhall"
|
||||
file-types = ["dhall"]
|
||||
comment-token = "--"
|
||||
block-comment-tokens = { start = "{-", end = "-}" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "dhall-lsp-server" ]
|
||||
formatter = { command = "dhall" , args = ["format"] }
|
||||
|
@ -2586,6 +2666,7 @@ scope = "source.msbuild"
|
|||
injection-regex = "msbuild"
|
||||
file-types = ["proj", "vbproj", "csproj", "fsproj", "targets", "props"]
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
grammar = "xml"
|
||||
|
||||
[language.auto-pairs]
|
||||
|
@ -2632,7 +2713,7 @@ scope = "source.tal"
|
|||
injection-regex = "tal"
|
||||
file-types = ["tal"]
|
||||
auto-format = false
|
||||
comment-token = "("
|
||||
block-comment-tokens = { start = "(", end = ")" }
|
||||
|
||||
[[grammar]]
|
||||
name = "uxntal"
|
||||
|
@ -2766,6 +2847,7 @@ injection-regex = "nim"
|
|||
file-types = ["nim", "nims", "nimble"]
|
||||
shebangs = []
|
||||
comment-token = "#"
|
||||
block-comment-tokens = { start = "#[", end = "]#" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
language-servers = [ "nimlangserver" ]
|
||||
|
||||
|
@ -2805,6 +2887,7 @@ source = { git = "https://github.com/pfeiferj/tree-sitter-hurl", rev = "264c4206
|
|||
[[language]]
|
||||
name = "markdoc"
|
||||
scope = "text.markdoc"
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
file-types = ["mdoc"]
|
||||
language-servers = [ "markdoc-ls" ]
|
||||
|
||||
|
@ -2858,6 +2941,7 @@ scope = "source.blueprint"
|
|||
injection-regex = "blueprint"
|
||||
file-types = ["blp"]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "blueprint-compiler" ]
|
||||
indent = { tab-width = 4, unit = " " }
|
||||
|
||||
|
@ -2910,6 +2994,7 @@ name = "webc"
|
|||
scope = "text.html.webc"
|
||||
injection-regex = "webc"
|
||||
file-types = ["webc"]
|
||||
block-comment-tokens = { start = "<!--", end = "-->" }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
grammar = "html"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue