lem-project / lem

Common Lisp editor/IDE with high expansibility
http://lem-project.github.io/
MIT License
2.18k stars 163 forks source link

Using tree-sitter for syntax highlight #757

Open Sasanidas opened 1 year ago

Sasanidas commented 1 year ago

Tree sitter (https://tree-sitter.github.io/tree-sitter/) is a very popular library for parsing languages, it's more useful for non-lisp languages mainly for syntax highlight and some local refactoring. It also have a very interesting query-api(https://tree-sitter.github.io/tree-sitter/using-parsers#the-query-api).

Luckily for us, someone already did the bindings for the C API of tree-sitter https://github.com/death/cl-tree-sitter with an MIT license so we can probably use it.

cxxxr commented 1 year ago

Thank you for sharing! This is very interesting.