You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lua class_start heuristic (Capitalised = {) also matches ALL_CAPS data tables #2439
lua class_start (^[ \t]*---@class\s+(\w+)|^[ \t]*(?:local )?(?:export )?(?:type )?([A-Z]\w*)(?=\s*=\s*\{))
is a heuristic for the Lua proto-table OOP idiom (Account = {}; Account.__index = Account; ...).
The second alternative -- a Capitalised name assigned a table literal -- also fires on plain
ALL_CAPS / Capitalised DATA tables:
Lua has no class syntax, so tree-sitter-lua (no class node) and Universal Ctags (no class kind)
both report 0 -- there is no ground-truth tool to catch this, only the tri-comparison lua/class/existence/agree[gitgalaxy]_vs[ctags,tree_sitter] shape (14 occurrences, validated
2026-08-29 as "GitGalaxy heuristic, no corroborating tool").
Options
Require a proto-table tell within a bounded window: a following .__index, :new, setmetatable(<name>,
or function <name>[.:] line. (Bounded-lookahead-friendly.)
Or treat lua like css/html -- add it to _CLASS_EXTRACTION_OUT_OF_SCOPE in tree_sitter_accuracy_audit.py and render lua class precision as N/A rather than 0.0%.
Activity
fix(lua): Mode-D nested-function recall + literal-shield tokenisation
fix(lua): Mode-D nested-function recall + literal-shield tokenisation (…
docs(tri-comparison): manual-verify csd func/class precision too
docs(tri-comparison): manual-verify mainframe gg-only precision (pli/…