difftastic/vendor/tree-sitter-commonlisp
Wilfred Hughes 7e3bdaf125 Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
..
.github/workflows Merge commit 'e43ea50e8701bbe319e2a42922caab393267ee1c' 2021-11-28 11:41:26 +07:00
bindings Add 'vendor/tree-sitter-commonlisp/' from commit '0e6fb49af1b14b5d37e960ac8756c7214a6fcf8f' 2021-11-26 22:20:27 +07:00
src Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
test Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
.gitmodules Merge commit 'e43ea50e8701bbe319e2a42922caab393267ee1c' 2021-11-28 11:41:26 +07:00
.npmignore Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
Cargo.lock Add 'vendor/tree-sitter-commonlisp/' from commit '0e6fb49af1b14b5d37e960ac8756c7214a6fcf8f' 2021-11-26 22:20:27 +07:00
Cargo.toml Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
LICENSE.md Add 'vendor/tree-sitter-commonlisp/' from commit '0e6fb49af1b14b5d37e960ac8756c7214a6fcf8f' 2021-11-26 22:20:27 +07:00
README.md Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
binding.gyp Add 'vendor/tree-sitter-commonlisp/' from commit '0e6fb49af1b14b5d37e960ac8756c7214a6fcf8f' 2021-11-26 22:20:27 +07:00
grammar.js Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
package-lock.json Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
package.json Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
test.lisp Add 'vendor/tree-sitter-commonlisp/' from commit '0e6fb49af1b14b5d37e960ac8756c7214a6fcf8f' 2021-11-26 22:20:27 +07:00

README.md

tree-sitter-commonlisp

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.

Additional Highlighting Support

Install https://github.com/theHamsta/nvim-treesitter-commonlisp to get highlighting of all functions and macros in the cl namespace.