#incremental #parsing

tree-sitter-hexdump

hexdump grammar for the tree-sitter parsing library

1 unstable release

0.1.0 Mar 29, 2023

#366 in Text editors

Download history 12/week @ 2023-10-29 32/week @ 2023-11-05 30/week @ 2023-11-12 10/week @ 2023-11-19 12/week @ 2023-11-26 11/week @ 2023-12-03 6/week @ 2023-12-10 9/week @ 2023-12-17 10/week @ 2023-12-24 5/week @ 2023-12-31 11/week @ 2024-01-07 10/week @ 2024-01-14 29/week @ 2024-01-21 6/week @ 2024-01-28 11/week @ 2024-02-04 13/week @ 2024-02-11

59 downloads per month
Used in syntastica-parsers

MIT and maybe GPL-3.0-only

21KB
525 lines

tree-sitter-hexdump

Simple hexdump grammar for tree-sitter

Usage in Neovim

Parser Installation

The nvim-treesitter plugin does not include this parser. To use it you must instead manually add it to your tree-sitter config and then install it with :TSInstall hexdump or by adding it to your ensure_installed list:

require('nvim-treesitter.parsers').get_parser_configs().hexdump = {
    install_info = {
        url = 'https://github.com/rush-rs/tree-sitter-hexdump.git',
        files = { 'src/parser.c' },
        branch = 'main',
    },
}

File type detection

You will likely also have to add the hexdump file type:

vim.filetype.add { extension = { hexdump = 'hexdump' } }

Highlighting

If you want to use this parser for highlighting, you will also have to add this repository as a plugin, for example for packer.nvim add this:

use { 'rush-rs/tree-sitter-hexdump' }

Dependencies

~2.6–5.5MB
~89K SLoC