LRLanguage

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

Subclass of Language for LR-parser-based languages.

Provides additional functionality for reconfiguring the parser and integrating with languageDataProp.

Constructors

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

Types

Link copied to clipboard
object Companion

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.