{ "name": "tree-sitter", "version": "0.26.13", "summary": "tree-sitter's runtime library: incremental parsing with grammars compiled to C (Neovim's syntax trees)", "category": "library", "license": "MIT", "homepage": "https://tree-sitter.github.io/tree-sitter/", "source": { "url": "https://github.com/tree-sitter/tree-sitter/archive/v0.26.13.tar.gz", "sha256": "ece24c3c5e2a76384075e830c7139b59fce8fb01e4ef8436fab08bbe10444c89" }, "watch": {"kind": "github-tag", "repo": "tree-sitter/tree-sitter", "pin": "0.26"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "check_lib tree-sitter tree_sitter/api.h 'TSParser *p = ts_parser_new(); TSRange r[2] = {{{0, 0}, {0, 10}, 0, 10}, {{1, 0}, {1, 20}, 30, 50}}; if (!ts_parser_set_included_ranges(p, r, 2)) return 1; uint32_t n = 0; const TSRange *g = ts_parser_included_ranges(p, &n); if (n != 2 || g[1].end_byte != 50) return 2; TSRange bad[2] = {{{0, 0}, {0, 9}, 0, 40}, {{0, 0}, {0, 9}, 10, 20}}; if (ts_parser_set_included_ranges(p, bad, 2)) return 3; if (ts_parser_language(p) || ts_parser_parse_string(p, NULL, \"int x;\", 6)) return 4; ts_parser_delete(p); printf(\"tree-sitter: grammars of ABI %d to %d; a parser took two included ranges and refused overlapping ones, and parses nothing without a grammar; the check of the neovim recipe parses C with one\\n\", TREE_SITTER_MIN_COMPATIBLE_LANGUAGE_VERSION, TREE_SITTER_LANGUAGE_VERSION); return 0'" }