diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 6cf773c6..dcf1e545 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -122,6 +122,7 @@ | html | ✓ | ✓ | | | ✓ | `vscode-html-language-server`, `superhtml` | | htmldjango | ✓ | | | | | `djlsp`, `vscode-html-language-server`, `superhtml` | | hurl | ✓ | ✓ | ✓ | | | | +| hy | ✓ | | | | | `hyuga` | | hyprlang | ✓ | | ✓ | | | `hyprls` | | idris | | | | | | `idris2-lsp` | | iex | ✓ | | | | | | diff --git a/languages.toml b/languages.toml index 0a907a6a..09b5b267 100644 --- a/languages.toml +++ b/languages.toml @@ -60,6 +60,7 @@ harper-ls = { command = "harper-ls", args = ["--stdio"] } haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] } hdls = { command = "hdls" } hyprls = { command = "hyprls" } +hyuga = { command = "hyuga" } idris2-lsp = { command = "idris2-lsp" } intelephense = { command = "intelephense", args = ["--stdio"] } jdtls = { command = "jdtls" } @@ -4079,6 +4080,22 @@ indent = { tab-width = 2, unit = " " } name = "ld" source = { git = "https://github.com/mtoohey31/tree-sitter-ld", rev = "0e9695ae0ede47b8744a8e2ad44d4d40c5d4e4c9" } +[[language]] +name = "hy" +scope = "source.hy" +roots = ["pyproject.toml"] +file-types = ["hy"] +comment-token = ";" +indent = { tab-width = 1, unit = " " } +grammar = "scheme" +language-servers = ["hyuga"] + +[language.auto-pairs] +'(' = ')' +'{' = '}' +'[' = ']' +'"' = '"' + [[language]] name = "hyprlang" scope = "source.hyprlang" diff --git a/runtime/queries/hy/highlights.scm b/runtime/queries/hy/highlights.scm new file mode 100644 index 00000000..e11eb788 --- /dev/null +++ b/runtime/queries/hy/highlights.scm @@ -0,0 +1 @@ +; inherits: scheme