5 releases

0.3.3 Apr 6, 2024
0.3.2 Apr 1, 2024
0.3.1 Aug 25, 2023
0.3.0 Dec 6, 2021
0.2.0 Jun 16, 2021

#168 in Text editors

Download history 7/week @ 2024-07-28 5/week @ 2024-09-15 22/week @ 2024-09-22 9/week @ 2024-09-29 1/week @ 2024-10-06

250 downloads per month
Used in tree-painter

MIT license

6MB
219K SLoC

C 219K SLoC JavaScript 360 SLoC // 0.0% comments Rust 31 SLoC // 0.5% comments Scheme 20 SLoC // 0.8% comments

tree-sitter-commonlisp

CI discord matrix npm crates pypi

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:

  • support number literatls that are different from clojure (e.g. .9)

Macros with special respresentation in syntax tree (when written with lowercase letters):

  • defun and friends (e.g. defmethod)
  • loop macro

This grammar is used in https://github.com/Wilfred/difftastic to generate syntax-ware diffs for Common Lisp.

Dependencies

~2.8–4MB
~76K SLoC