#tree-sitter #incremental #parser #icelang

tree-sitter-icelang

icelang grammar for the tree-sitter parsing library

7 releases

0.1.6 Aug 25, 2023
0.1.5 Aug 24, 2023
0.1.1 Jun 29, 2023

#248 in Text editors

Download history 9/week @ 2024-09-23 3/week @ 2024-09-30

75 downloads per month

MIT license

355KB
15K SLoC

C 14K SLoC Scheme 212 SLoC JavaScript 204 SLoC Rust 31 SLoC // 0.5% comments

tree-sitter-icelang

Build/test crates.io

icelang grammar for tree-sitter

Build

# install tree-sitter-cli with cargo or npm
cargo install tree-sitter-cli
# or
npm i -g tree-sitter-cli

# generate parser
tree-sitter generate

Neovim

To use it in Neovim, you have install the parser manually by adding the following code in your nvim-treesitter configuration, and run :TSInstall icelang.

local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.icelang = {
  install_info = {
    url = "https://github.com/luckasRanarison/tree-sitter-icelang",
    files = { "src/parser.c" },
    branch = "master",
  },
  filetype = "icelang",
}

To get syntax highlightings, folds and indents, you can use the repository as plugin by installing it with your package manager.

Lazy:

return { "luckasRanarison/tree-sitter-icelang" }

Packer:

use { "luckasRanarison/tree-sitter-icelang" }

Dependencies

~2.7–4MB
~75K SLoC