class

TreeSitter::Language

Inherits Reference / Object

A Language defines how to parse a particular programming language. The code for each Language is generated by Tree-sitter. Many languages are already available in separate git repositories within the the Tree-sitter GitHub organization.

Constructors

new(name : String)
Source

Instance methods

abi_version

Get the ABI version number for this language. This version number is used to ensure that languages were generated by a compatible version of Tree-sitter.

See also Parser#language=.

Source
field_count

Get the number of distinct field names in the language.

Source
highlight_query
Source
highlight_query?
Source
injection_regex
Source
injection_regex?
Source
name
Source
symbol_count

Get the number of distinct node types in the language.

Source