Language

open class Language(val parser: Parser, val name: String = "")

A language object manages parsing and per-language metadata. Parse data is managed as a Lezer tree.

Inheritors

Constructors

Link copied to clipboard
constructor(parser: Parser, name: String = "")

Properties

Link copied to clipboard

Whether this language allows nesting other languages inside it.

Link copied to clipboard

The extension value to install this as the document language.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun getTree(state: EditorState): Tree

Parse the document in state and return the resulting syntax tree. Subclasses may override to pass additional context (e.g. tabSize) to the underlying parser.