A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gmlarumbe/verilog-ts-mode below:

gmlarumbe/verilog-ts-mode: Emacs Verilog Tree-sitter Major-mode

verilog-ts-mode.el - SystemVerilog Tree-sitter mode for Emacs

The package verilog-ts-mode provides syntax highlighting, indentation, imenu, which-func, navigation and basic beautify and completion features.

verilog-ts-mode is derived from verilog-mode making AUTOs and other utilities still available.

Before installing/building Emacs make sure that tree-sitter is available:

$ sudo apt-get install tree-sitter
$ sudo pacman -S tree-sitter
$ git clone https://github.com/tree-sitter/tree-sitter.git
$ cd tree-sitter
$ make && sudo make install

If Emacs has been built with tree-sitter support the following command should return t:

verilog-ts-mode is available on MELPA.

To install it via straight with use-package:

(straight-use-package 'use-package)
(use-package verilog-ts-mode)

The package provides an interactive command to simplify the installation of the grammar:

This command requires Git, a C compiler and (sometimes) a C++ compiler, and the linker to be installed and on the PATH.

Once run successfully it will install the new tree-sitter-systemverilog grammar that verilog-ts-mode relies on.

At this point, the following command should return t:

(treesit-language-available-p 'verilog)

To open Verilog and SystemVerilog files with verilog-ts-mode simply add this line to your init file:

(add-to-list 'auto-mode-alist '("\\.s?vh?\\'" . verilog-ts-mode))

To change the faces default values there are two methods:

Contributions are welcome! Just stick to common Elisp conventions and run the ERT suite after testing your changes and before submitting a new PR.

For new functionality add new ERT tests if possible.

Consider sponsoring to help maintaining the project and for the development of new features. Thank you!

To run the whole ERT test suite change directory to the verilog-ts-mode root and make sure test-hdl Git submodule has been loaded:

git submodule update --init

Then run the default target:

To run a subset of tests (e.g. navigation):

To regenerate all the expected outputs for the tests:

To regenerate the expected outputs for a group of tests (e.g. navigation):

$ make gen TESTS=navigation

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4