node_language | R Documentation |
node_language()
returns the document text underlying a node.
node_language(x)
x |
A node. |
A tree_sitter_language
object.
language <- treesitter.r::language()
parser <- parser(language)
text <- "1 + foo"
tree <- parser_parse(parser, text)
node <- tree_root_node(tree)
node_language(node)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.