| Crates.io | tree-sitter-commonlisp |
| lib.rs | tree-sitter-commonlisp |
| version | 0.4.1 |
| created_at | 2021-06-16 21:31:01.505802+00 |
| updated_at | 2025-03-16 15:40:09.691517+00 |
| description | Common Lisp grammar for the tree-sitter parsing library |
| homepage | |
| repository | https://github.com/theHamsta/tree-sitter-commonlisp |
| max_upload_size | |
| id | 411043 |
| size | 6,135,274 |
WIP. Goal is to have a better syntax highlighting for Neovim and some semantic refactoring https://github.com/nvim-treesitter/nvim-treesitter-refactor/.
All praise goes to https://github.com/sogaiu/tree-sitter-clojure which is extended by this grammar.
TODOs:
.9)Macros with special respresentation in syntax tree (when written with lowercase letters):
This grammar is used in https://github.com/Wilfred/difftastic to generate syntax-ware diffs for Common Lisp.
C/C++
make (optional make install)tree_sitter_commonlisp() as language on your Tree-Sitter parser from tree_sitter_commonlisp.hts_parser_set_language(parser, tree_sitter_json());
Python (pip install tree-sitter-commonlisp tree-sitter)
https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/blob/4d2a2247bb0ec117193ef33e3ce546a6781c5bf5/bindings/python/tests/test_import.py#L15-L23
Rust cargo add tree-sitter tree-sitter-grammars
https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/blob/4d2a2247bb0ec117193ef33e3ce546a6781c5bf5/bindings/rust/lib.rs#L47-L50