pub const TAGS_QUERY: &str = "; Mosaic code-navigation tags.\n;\n; Drives ctags-like symbol indexers. Each capture must come in pairs:\n; a `@definition.*` or `@reference.*` on the outer node, plus a `@name`\n; on the identifying sub-node.\n\n; --- Definitions ------------------------------------------------------------\n\n; Headings act as section definitions; the rendered content is the name.\n(heading\n content: (inline_sequence) @name) @definition.section\n\n; `<intro:setup>` declares a target label.\n(label\n name: (label_name) @name) @definition.label\n\n; --- References -------------------------------------------------------------\n\n; `#name(...)`: template/function invocation in block or inline position.\n(hash_call\n function: (qualified_name) @name) @reference.call\n\n; `name(...)`: expression-position call.\n(call_expr\n function: (qualified_name) @name) @reference.call\n\n; `@intro:setup`: label use.\n(reference\n target: (label_name) @name) @reference.label\n\n; `@page(intro:setup)`: page-reference label use.\n(page_reference\n target: (label_name) @name) @reference.label\n\n; `[@knuth1984]`: bibliography key use.\n(citation\n target: (label_name) @name) @reference.citation\n\n; `#import \"lib.mos\"` / `#include \"...\"`: module references by path.\n(import_directive\n path: (string) @name) @reference.import\n\n(include_directive\n path: (string) @name) @reference.import\n";Expand description
The symbol tagging query for this grammar.