#lisp #parser #incremental #syntax-highlighting

tree-sitter-commonlisp

tree-sitter 解析库的 Common Lisp 语法

5 个版本

0.3.3 2024年4月6日
0.3.2 2024年4月1日
0.3.1 2023年8月25日
0.3.0 2021年12月6日
0.2.0 2021年6月16日

#391 in 文本编辑器


用于 tree-painter

MIT 许可协议

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

正在进行中。目标是提高 Neovim 的语法高亮,并进行一些语义重构 https://github.com/nvim-treesitter/nvim-treesitter-refactor/

所有赞誉归功于 https://github.com/sogaiu/tree-sitter-clojure,该语法基于此扩展。

待办事项

  • 支持与 Clojure 不同的数字字面量(例如 .9

具有特殊表示的宏(当用小写字母编写时)

  • defun 和朋友(例如 defmethod)
  • loop 宏

此语法用于 https://github.com/Wilfred/difftastic 生成 Common Lisp 的语法差异。

依赖项

~2.7–4MB
~71K SLoC