Skip to content

nverno/llvm-ts-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLVM major mode using tree-sitter

License: GPL v3

This package is compatible with and was tested against the tree-sitter grammar for LLVM found at tree-sitter-llvm.

This mode provides the following features for LLVM source buffers:

  • font-locking
  • indentation
  • structural navigation with tree-sitter objects
  • imenu

example

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

(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
(require "[cloned nverno/llvm-ts-mode]/llvm-ts-mode.el")

About

Emacs major mode for LLVM using tree-sitter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published