Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luckasranarison/tree-sitter-icelang
icelang grammar for tree-sitter
https://github.com/luckasranarison/tree-sitter-icelang
parser programming-language tree-sitter
Last synced: 3 days ago
JSON representation
icelang grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/luckasranarison/tree-sitter-icelang
- Owner: luckasRanarison
- License: mit
- Created: 2023-06-27T16:31:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-25T11:31:36.000Z (over 1 year ago)
- Last Synced: 2025-01-28T22:50:03.391Z (3 days ago)
- Topics: parser, programming-language, tree-sitter
- Language: JavaScript
- Homepage: https://crates.io/crates/tree-sitter-icelang
- Size: 202 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-icelang
[![Build/test](https://github.com/luckasRanarison/tree-sitter-icelang/actions/workflows/ci.yml/badge.svg)](https://github.com/luckasRanarison/tree-sitter-icelang/actions/workflows/ci.yml)
[![crates.io](https://img.shields.io/crates/v/tree-sitter-icelang)](https://crates.io/crates/tree-sitter-icelang)[icelang](https://github.com/luckasRanarison/icelang) grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter)
# Build
```bash
# 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](https://github.com/nvim-treesitter/nvim-treesitter/) configuration, and run `:TSInstall icelang`.
```lua
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:
```lua
return { "luckasRanarison/tree-sitter-icelang" }
```Packer:
```lua
use { "luckasRanarison/tree-sitter-icelang" }
```