Skip to content

Tree-sitter grammar for the Nuf language

Notifications You must be signed in to change notification settings

nuflang/tree-sitter-nuf

Repository files navigation

Tree-sitter grammar for the Nuf language

Installation

Neovim

  1. Add nuf filetype
vim.filetype.add({ extension = { nuf = "nuf" } })
  1. Add nuf parser
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.nuf = {
  install_info = {
    url = "github.com/nuflang/tree-sitter-nuf",
    files = { "src/parser.c" },
  },
}
  1. Add nuf query in /queries/nuf/hightlights.scm
(function_call (identifier) @function.builtin)
(bracket) @punctuation.bracket
(string) @string
(delimiter) @punctuation.delimiter
("inside") @keyword
(custom_name) @variable
  1. :TSInstall nuf

About

Tree-sitter grammar for the Nuf language

Resources

Stars

Watchers

Forks

Packages

No packages published