Files
skill-ls/skillls/constants.py
T
2026-06-19 13:04:28 +02:00

20 lines
585 B
Python

"""
Centralized constants for the Skill language parser and LSP server.
"""
from typing import Final, Set
# Node types that represent syntax errors in Tree-sitter
ERROR_NODE_TYPES: Final[Set[str]] = {"ERROR", "MISSING"}
# Node types that are considered significant enough to appear in the Document Symbol outline
SYMBOLIC_NODE_TYPES: Final[Set[str]] = {
"function_definition",
"procedure_definition",
"namespace",
"let_binding",
}
# Node types used to identify names/identifiers within symbolic nodes
IDENTIFIER_NODE_TYPES: Final[Set[str]] = {"identifier", "name"}