class TreeSitter::Language
- TreeSitter::Language
- Reference
- Object
Overview
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.
Defined in:
tree_sitter/language.crConstructors
Instance Method Summary
-
#abi_version : Int32
Get the ABI version number for this language.
-
#field_count : UInt32
Get the number of distinct field names in the language.
- #highlight_query : Query
- #highlight_query? : Query | Nil
- #injection_regex : Regex
- #injection_regex? : Regex | Nil
- #name : String
-
#symbol_count : UInt32
Get the number of distinct node types in the language.
Constructor Detail
Instance Method Detail
def abi_version : Int32
#
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=
.