find_tokens_to_update | R Documentation |
Given a target token and a flattened parse table, the token for which the
spacing information needs to be updated are computed. Since indention is
already embedded in the column lag_spaces
, only tokens at the beginning of
a line are of concern.
find_tokens_to_update(flattened_pd, target_token)
flattened_pd |
A flattened parse table. |
target_token |
The index of the token from which the indention level should be applied to other tokens. |
apply_ref_indention_one()
style_text("function(a =
b,
dd
) {}", scope = "indention")
style_text("function(a,
b,
dd
) {}", scope = "indention")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.