Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nverno/llvm-ts-mode
Emacs major mode for LLVM using tree-sitter
https://github.com/nverno/llvm-ts-mode
emacs llvm tree-sitter
Last synced: 13 days ago
JSON representation
Emacs major mode for LLVM using tree-sitter
- Host: GitHub
- URL: https://github.com/nverno/llvm-ts-mode
- Owner: nverno
- License: gpl-3.0
- Created: 2023-11-15T12:59:57.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-20T12:51:09.000Z (about 1 year ago)
- Last Synced: 2024-11-17T05:17:08.120Z (3 months ago)
- Topics: emacs, llvm, tree-sitter
- Language: Emacs Lisp
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LLVM major mode using tree-sitter
[![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 LLVM found at [tree-sitter-llvm](https://github.com/benwilliamgraham/tree-sitter-llvm).This mode provides the following features for LLVM source buffers:
- font-locking
- indentation
- structural navigation with tree-sitter objects
- imenu
![example](doc/llvm-example.png)## 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 for LLVM
```elisp
(add-to-list
'treesit-language-source-alist
'(llvm "https://github.com/benwilliamgraham/tree-sitter-llvm"))
(treesit-install-language-grammar 'llvm)
```### Install llvm-ts-mode.el from source
- Clone this repository
- Add the following to your emacs config```elisp
(require "[cloned nverno/llvm-ts-mode]/llvm-ts-mode.el")
```