mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Add koka language server and update grammar (#10119)
This commit is contained in:
parent
f240d896a4
commit
a2ee2e66f2
@ -100,7 +100,7 @@
|
|||||||
| julia | ✓ | ✓ | ✓ | `julia` |
|
| julia | ✓ | ✓ | ✓ | `julia` |
|
||||||
| just | ✓ | ✓ | ✓ | |
|
| just | ✓ | ✓ | ✓ | |
|
||||||
| kdl | ✓ | ✓ | ✓ | |
|
| kdl | ✓ | ✓ | ✓ | |
|
||||||
| koka | ✓ | | ✓ | |
|
| koka | ✓ | | ✓ | `koka` |
|
||||||
| kotlin | ✓ | | | `kotlin-language-server` |
|
| kotlin | ✓ | | | `kotlin-language-server` |
|
||||||
| latex | ✓ | ✓ | | `texlab` |
|
| latex | ✓ | ✓ | | `texlab` |
|
||||||
| ld | ✓ | | ✓ | |
|
| ld | ✓ | | ✓ | |
|
||||||
|
@ -45,6 +45,7 @@ intelephense = { command = "intelephense", args = ["--stdio"] }
|
|||||||
jdtls = { command = "jdtls" }
|
jdtls = { command = "jdtls" }
|
||||||
jsonnet-language-server = { command = "jsonnet-language-server", args= ["-t", "--lint"] }
|
jsonnet-language-server = { command = "jsonnet-language-server", args= ["-t", "--lint"] }
|
||||||
julia = { command = "julia", timeout = 60, args = [ "--startup-file=no", "--history-file=no", "--quiet", "-e", "using LanguageServer; runserver()", ] }
|
julia = { command = "julia", timeout = 60, args = [ "--startup-file=no", "--history-file=no", "--quiet", "-e", "using LanguageServer; runserver()", ] }
|
||||||
|
koka = { command = "koka", args = ["--language-server", "--lsstdio"] }
|
||||||
kotlin-language-server = { command = "kotlin-language-server" }
|
kotlin-language-server = { command = "kotlin-language-server" }
|
||||||
lean = { command = "lean", args = [ "--server" ] }
|
lean = { command = "lean", args = [ "--server" ] }
|
||||||
ltex-ls = { command = "ltex-ls" }
|
ltex-ls = { command = "ltex-ls" }
|
||||||
@ -3264,10 +3265,11 @@ injection-regex = "koka"
|
|||||||
file-types = ["kk"]
|
file-types = ["kk"]
|
||||||
comment-token = "//"
|
comment-token = "//"
|
||||||
indent = { tab-width = 8, unit = " " }
|
indent = { tab-width = 8, unit = " " }
|
||||||
|
language-servers = ["koka"]
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "koka"
|
name = "koka"
|
||||||
source = { git = "https://github.com/mtoohey31/tree-sitter-koka", rev = "2527e152d4b6a79fd50aebd8d0b4b4336c94a034" }
|
source = { git = "https://github.com/mtoohey31/tree-sitter-koka", rev = "96d070c3700692858035f3524cc0ad944cef2594" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "tact"
|
name = "tact"
|
||||||
|
@ -12,18 +12,6 @@
|
|||||||
])))
|
])))
|
||||||
["(" (block) (fnexpr)])
|
["(" (block) (fnexpr)])
|
||||||
|
|
||||||
(ntlappexpr
|
|
||||||
function: (ntlappexpr
|
|
||||||
(atom
|
|
||||||
(qidentifier
|
|
||||||
[
|
|
||||||
(qvarid) @function
|
|
||||||
(qidop) @function
|
|
||||||
(identifier
|
|
||||||
[(varid) (idop)] @function)
|
|
||||||
])))
|
|
||||||
["(" (block) (fnexpr)])
|
|
||||||
|
|
||||||
(appexpr
|
(appexpr
|
||||||
field: (atom
|
field: (atom
|
||||||
(qidentifier
|
(qidentifier
|
||||||
@ -46,28 +34,6 @@
|
|||||||
])))
|
])))
|
||||||
"[")
|
"[")
|
||||||
|
|
||||||
(ntlappexpr
|
|
||||||
field: (atom
|
|
||||||
(qidentifier
|
|
||||||
[
|
|
||||||
(qvarid) @function
|
|
||||||
(qidop) @function
|
|
||||||
(identifier
|
|
||||||
[(varid) (idop)] @function)
|
|
||||||
])))
|
|
||||||
|
|
||||||
(ntlappexpr
|
|
||||||
(ntlappexpr
|
|
||||||
field: (atom
|
|
||||||
(qidentifier
|
|
||||||
[
|
|
||||||
(qvarid) @variable
|
|
||||||
(qidop) @variable
|
|
||||||
(identifier
|
|
||||||
[(varid) (idop)] @variable)
|
|
||||||
])))
|
|
||||||
"[")
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"initially"
|
"initially"
|
||||||
"finally"
|
"finally"
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
[
|
[
|
||||||
(appexpr ["[" "("]) ; Applications.
|
(appexpr ["[" "("]) ; Applications.
|
||||||
(ntlappexpr ["[" "("])
|
|
||||||
(atom ["[" "("]) ; Lists and tuples.
|
(atom ["[" "("]) ; Lists and tuples.
|
||||||
(program (moduledecl "{")) ; Braced module declarations.
|
(program (moduledecl "{")) ; Braced module declarations.
|
||||||
(funbody)
|
(funbody)
|
||||||
|
Loading…
Reference in New Issue
Block a user