Skip to content

Extract a language object's language name.

Usage

language_name(x)

Arguments

x

[tree_sitter_language]

A tree-sitter language object.

Value

A string.

Examples

language <- treesitter.r::language()
language_name(language)
#> [1] "r"