tests/testthat/references/delimiter.R

# ------------------------------------------------------------------------------
# closing brace

}

# ------------------------------------------------------------------------------
# closing parenthesis

)

# ------------------------------------------------------------------------------
# closing bracket

]

# ------------------------------------------------------------------------------
# opening brace, closing parenthesis

# Parenthesis is "not valid" so it isn't matched by the external scanner
{)

# ------------------------------------------------------------------------------
# opening parenthesis, closing brace

(}

# ------------------------------------------------------------------------------
# opening parenthesis, closing bracket

(]

# ------------------------------------------------------------------------------
# opening bracket2, unmatched closing bracket

x[[2]

# ------------------------------------------------------------------------------
# opening bracket and bracket2, unmatched closing bracket

x[y[[2]

# ------------------------------------------------------------------------------
# opening bracket2 and bracket, matched closing bracket

x[[y[2]

# ------------------------------------------------------------------------------
# opening bracket2 and bracket, unmatched closing bracket

x[[y[2]]

# ------------------------------------------------------------------------------
# for no closing `)`

for (i in vec

  1 + 1

Try the treesitter.r package in your browser

Any scripts or data that you put into this service are public.

treesitter.r documentation built on Sept. 12, 2024, 7:06 a.m.