Package-level declarations

Types

Link copied to clipboard
class Injection(val injectionsQuery: Query, val injectionsQuerySource: String, val target: Language)
Link copied to clipboard
@RequiresOptIn(message = "Internal Compose Syntax Highlight SPI. Use only when implementing a language module.", level = RequiresOptIn.Level.ERROR)
annotation class InternalSyntaxHighlightApi
Link copied to clipboard
class Language(val parser: Language, val highlightsQuery: String, val query: Query, val injections: List<Injection> = emptyList())
Link copied to clipboard
object Languages

Cross-module catalog of bundled languages.

Functions

Link copied to clipboard
fun kTreeSitterLanguage(parser: Language, highlightsQuery: String): Language
fun kTreeSitterLanguage(parser: Language, highlightsQuery: String, injections: List<Injection>): Language