language_symbol_for_name | R Documentation |
Get the integer symbol ID for a particular node name. Can be useful for exploring the grammar.
language_symbol_for_name(x, name, ..., named = TRUE)
x |
A tree-sitter language object. |
name |
The names to look up symbols for. |
... |
These dots are for future extensions and must be empty. |
named |
Should named or anonymous nodes be looked up? Recycled to the
size of |
An integer vector the same size as name
containing either:
The integer symbol ID of the node name, if known.
NA
if the node name was not known.
language_symbol_name()
language <- treesitter.r::language()
language_symbol_for_name(language, "identifier")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.