2 Repos
Mechanisms for identifying and highlighting embedded code blocks within host languages.
Distinguishing note: Focuses on the identification of nested language boundaries rather than general syntax highlighting.
Explore 2 awesome GitHub repositories matching web development · Language Injection Patterns. Refine with filters or upvote what's useful.
Helix is a terminal-based modal text editor designed for efficient code manipulation and navigation. It centers on a selection-first editing model, where operations are performed on active ranges rather than individual cursor positions, allowing for precise control over text and code structures. The editor distinguishes itself through deep integration with structural parsing and language intelligence. By utilizing an incremental parsing library, it builds concrete syntax trees that enable advanced features like structural code navigation, intelligent indentation, and syntax-aware text object
Helix defines patterns that identify and highlight embedded code blocks within a file, such as scripts inside HTML or SQL inside strings.
This project provides an integration of Tree-sitter into the Neovim editor to enable structural code analysis. It serves as a framework for structural code navigation, context-aware syntax highlighting, and the management of language-specific parsers. The system distinguishes itself through a multi-language injection handler that identifies and parses embedded languages within a single document. It uses a dedicated parser manager to install, update, and remove grammar definitions and their associated query files. The tool covers several capability areas including incremental text selection,
Identifies and parses embedded languages within a document to apply appropriate syntax rules to different sections.