https://github.com/nverno/tablegen-ts-mode
Emacs major mode to LLVM TableGen
https://github.com/nverno/tablegen-ts-mode
emacs llvm lsp tablegen tree-sitter
Last synced: about 1 year ago
JSON representation
Emacs major mode to LLVM TableGen
- Host: GitHub
- URL: https://github.com/nverno/tablegen-ts-mode
- Owner: nverno
- License: gpl-3.0
- Created: 2023-12-13T03:47:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-13T15:10:27.000Z (over 2 years ago)
- Last Synced: 2025-01-18T00:30:19.757Z (about 1 year ago)
- Topics: emacs, llvm, lsp, tablegen, tree-sitter
- Language: Emacs Lisp
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## tablegen-ts-mode - Emacs major mode for TableGen from LLVM
[](https://www.gnu.org/licenses/gpl-3.0)
A major mode for editing TableGen files.
This mode provides the following features for TableGen source buffers:
- font-locking
- indentation
- structural navigation with tree-sitter objects
- imenu

## Installation
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 TableGen
```elisp
(add-to-list
'treesit-language-source-alist
'(tablegen "https://github.com/amaanq/tree-sitter-tablegen"))
(treesit-install-language-grammar 'tablegen)
```
### Install tablegen-ts-mode.el from source
- Clone this repository
- Add the following to your emacs config
```elisp
(require "[cloned nverno/tablegen-ts-mode]/tablegen-ts-mode.el")
```