lua

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

treesitter-lua (vendored fork)

Local fork of github.com/smacker/go-tree-sitter/lua carrying a single one-character source-only patch to parser.c line 254. The upstream generated ts_symbol_names[anon_sym_] = "<raw NUL byte>" triggers a GCC null character(s) preserved in literal warning that has no specific -W flag to silence. Replacing the raw NUL with the "\0" escape sequence produces byte-identical compiled output and silences the warning without setting CGO_CFLAGS=-w globally.

The package is imported as lua and exposes GetLanguage() with the same signature as upstream. Re-sync from upstream by recopying binding.go, parser.c, parser.h, scanner.c and re-applying the patch (perl -i -pe 's/"\x00"/"\\0"/g' parser.c).

Upstream license: MIT (see LICENSE.upstream).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguage

func GetLanguage() *sitter.Language

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL