Skip to content

[ should trigger indention #206

Closed
Closed

Description

@lorenzwalthert

Please indent the second line:

styler::style_text(                                  
'ranges[tag == "non_literal" & str_detect(text, ";"),
text := str_replace_all(text, ";", "\n")]'          
)                                                    
#> ranges[tag == "non_literal" & str_detect(text, ";"),
#> text := str_replace_all(text, ";", "\n")]

Looks like [ could simply be added to the list of indent_op(). RStudio does not indent token dependent, so I guess a simple solution is fine.

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions