LanguageDescription

constructor(name: String, alias: List<String> = emptyList(), extensions: List<String> = emptyList(), filename: List<Regex> = emptyList(), load: () -> LanguageSupport? = null)

Parameters

name

Human-readable name of the language (e.g., "JavaScript").

alias

Alternative names for the language (e.g., "js", "ecmascript").

extensions

File extensions associated with the language (e.g., listOf("js", "mjs", "cjs")).

filename

Regex patterns matching filenames for this language (e.g., listOf(Regex("Makefile")) for Makefiles without extensions).

load

Factory function that creates a LanguageSupport instance.