~rockorager/tree-sitter-scfg

add github mirror
export dquote_word and squote_word, update tests
comment: allow quotes in comments

refs

main
browse  log 

clone

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

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

#Usage

#neovim

  1. Manually add the parser to your nvim config:

    require("nvim-treesitter.parsers").get_parser_configs().scfg = {
     install_info = {
         url = "https://git.sr.ht/~rockorager/tree-sitter-scfg",
         files = {"src/parser.c"},
     },
     filetype = "scfg",
     requires_generate_from_grammar = true,
    }
    
    -- register the filetype, this is not built in to neovim
    
    vim.filetype.add({
     extension = {
         scfg = "scfg",
     }
    })
    
  2. Link or copy queries/highlights.scm to $XDG_CONFIG_HOME/nvim/queries/scfg/highlights.scm

  3. Open nvim, and run :TSInstall scfg

#Contributing

Patches or issues can be sent to ~rockorager/public-inbox@lists.sr.ht