~rockorager/tree-sitter-hare

Tree-sitter grammar for hare
strings: fix raw-string-literal
format-seq: add format field modifiers
highlights: add "bool" @type

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~rockorager/tree-sitter-hare
read/write
git@git.sr.ht:~rockorager/tree-sitter-hare

You can also use your local clone with git send-email.

#tree-sitter-hare

(Fork of ~ecmma/tree-sitter-hare)

Hare grammar for the popular incremental parser generator tree-sitter.

#Status

tree-sitter-hare is still in development. This fork is based on the work of ~ecmma. The grammar has been updated to the current specification and the tree significantly flattened in order to make queries easier and parsing faster. The tree is based on tree-sitter-c, with some help from tree-sitter-go and tree-sitter-rust.

#Usage

#neovim

  1. Manually add the parser to your nvim config:
    require("nvim-treesitter.parsers").get_parser_configs().hare = {
        install_info = {
            url = "https://git.sr.ht/~rockorager/tree-sitter-hare",
            files = {"src/parser.c"},
        },
        filetype = "hare",
        requires_generate_from_grammar = true,
    }
    
  2. Link or copy queries/highlights.scm to $XDG_CONFIG_HOME/nvim/queries/hare/highlights.scm
  3. Open nvim, and run :TSInstall hare

#Contributing

Patches or issues can be sent to ~rockorager/tree-sitter-hare@lists.sr.ht