feat!: update bindings

This commit is contained in:
ObserverOfTime
2025-05-09 10:06:33 +03:00
committed by Michael Hoffmann
parent 41a2e70241
commit 8b209bbb95
23 changed files with 337 additions and 114 deletions

View File

@@ -1,3 +1,7 @@
/// <reference types="tree-sitter-cli/dsl" />
// @ts-check
/** @param {string} dialect */
module.exports = function make_grammar(dialect) {
const PREC = {
unary: 7,
@@ -52,8 +56,8 @@ module.exports = function make_grammar(dialect) {
identifier: ($) =>
token(
seq(
choice(/\p{ID_Start}/, "_"),
repeat(choice(/\p{ID_Continue}/, "-", "::")),
choice(/\p{ID_Start}/u, "_"),
repeat(choice(/\p{ID_Continue}/u, "-", "::")),
),
),