on master help sign in
Add basic support for common lisp
commit417676953bce6a4be91f4b8da35ed0e361b585ec authorBlaž Hrastnik <blaz@mxxn.io> dateMon 5 Dec 2022, 14:40 (4 years ago) parent59cfe95
3 files changed+15−2
languages.toml+13−2 runtime/queries/common-lisp/highlights.scm+1 runtime/queries/common-lisp/injections.scm+1
languages.toml+13−2
@@ -878,14 +878,25 @@ source = { git = "https://github.com/ganezdragon/tree-sitter-perl", rev = "0ac2c
878878
879879[[language]]
880880name = "racket"
881−scope = "source.rkt"
881+scope = "source.racket"
882882roots = []
883−file-types = ["rkt"]
883+file-types = ["rkt", "rktd", "rktl", "scrbl"]
884884shebangs = ["racket"]
885885comment-token = ";"
886886language-server = { command = "racket", args = ["-l", "racket-langserver"] }
887887grammar = "scheme"
888888
889+[[language]]
890+name = "common-lisp"
891+scope = "source.lisp"
892+roots = []
893+file-types = ["lisp", "asd", "cl", "l", "lsp", "ny"," podsl", "sexp"]
894+shebangs = ["lisp", "sbcl", "ccl", "clisp", "ecl"]
895+comment-token = ";"
896+indent = { tab-width = 2, unit = " " }
897+language-server = { command = "cl-lsp", args = [ "stdio" ] }
898+grammar = "scheme"
899+
889900[[language]]
890901name = "comment"
891902scope = "scope.comment"
runtime/queries/common-lisp/highlights.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: scheme
runtime/queries/common-lisp/injections.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: scheme