Syntax highlight for custom language not applying #8801
-
SummaryGiven a definition of custom yaml-based dsl: (yes, "language" literally named "dsl") [[language]]
name = "dsl"
language-id = "yaml"
scope = "source.dsl"
file-types = ["yaml", "yml"]
roots = ["dsl.cabal"]
# grammar = "yaml"
language-servers = [ "dsl-language-server" ]
[language-server.dsl-language-server]
command = "dsl"
args = [ "lsp" ]
[[grammar]]
name = "dsl"
source = { git = "https://github.com/ikatyang/tree-sitter-yaml", rev = "0e36bed171768908f331ff7dff9d956bae016efb" }
Setting BUT if I perform Reproduction Stepsn/a Helix logNothing interesting there, only that PlatformLinux Terminal Emulatorkitty 0.31.0 created by Kovid Goyal Installation Methodreleases page Helix Versionhelix 23.10 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
multiple filetype can not have the same file extension or its ambigous which one is used. You could either change the language name to yaml to overwrite the builtin yaml configuration, use a different file extension or overwrite the yaml file extensions (removing the builtin ones). |
Beta Was this translation helpful? Give feedback.
multiple filetype can not have the same file extension or its ambigous which one is used.
You could either change the language name to yaml to overwrite the builtin yaml configuration, use a different file extension or overwrite the yaml file extensions (removing the builtin ones).