Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nverno/comment-ts
Tree-sitter support for comments
https://github.com/nverno/comment-ts
emacs tree-sitter
Last synced: 20 days ago
JSON representation
Tree-sitter support for comments
- Host: GitHub
- URL: https://github.com/nverno/comment-ts
- Owner: nverno
- License: gpl-3.0
- Created: 2023-10-31T08:07:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-05T21:38:06.000Z (about 1 year ago)
- Last Synced: 2024-11-17T05:17:06.201Z (3 months ago)
- Topics: emacs, tree-sitter
- Language: Emacs Lisp
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Tree-sitter support for comments
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
This package is compatible with and was tested against the tree-sitter grammar
for comments found at [tree-sitter-comment](https://github.com/stsewd/tree-sitter-comment).It provides font-locking support for comments that is intended to be used as an
embedded parser with other languages.## Installing
Emacs 29.1 or above with tree-sitter support is required.
Tree-sitter starter guide: https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=emacs-29
### Install tree-sitter parser
Add the source to `treesit-language-source-alist` and call
`treesit-install-language-grammar` to install.```elisp
(let ((treesit-language-source-alist
'((comment "https://github.com/tree-sitter/tree-sitter-comment"))))
(treesit-install-language-grammar 'comment))
```