a structural diff that understands syntax 🟥🟩
 
 
 
 
 
Go to file
Stephan Seitz 982a2c556e Add build to .npmignore 2021-12-06 20:32:00 +07:00
.github/workflows Parse sly in CI 2021-11-28 14:59:14 +07:00
bindings Update cargo bindings 2021-06-16 23:26:09 +07:00
src Upgrade to tree_sitter 0.20.1 (#9) 2021-12-06 20:21:30 +07:00
test Fix unquoting in defuns 2021-11-28 14:57:02 +07:00
.gitmodules Add sly for testing 2021-11-28 12:25:19 +07:00
.npmignore Add build to .npmignore 2021-12-06 20:32:00 +07:00
Cargo.lock Update cargo bindings 2021-06-16 23:26:09 +07:00
Cargo.toml Bump version: 0.3.0 2021-12-06 20:24:17 +07:00
LICENSE.md Fix #3: Switch license to MIT 2021-11-25 22:04:17 +07:00
README.md Update README.md 2021-11-28 21:59:02 +07:00
binding.gyp Rename binding name 2021-04-19 17:51:39 +07:00
grammar.js Fix unquoting in defuns 2021-11-28 14:57:02 +07:00
package-lock.json Upgrade to tree_sitter 0.20.1 (#9) 2021-12-06 20:21:30 +07:00
package.json Bump version: 0.3.0 2021-12-06 20:24:17 +07:00
test.lisp Add loop test 2021-04-03 02:31:47 +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.