Skip to content

Unrelated blocks without non-comment are connected at best, yield parsing error at worst #827

@lorenzwalthert

Description

@lorenzwalthert
styler::style_text("
#' This
#'
#'
#' is stuff
#'
#' @examples
#' 1


#' nolint start
#' @examplesIf long_condition_line
#' nolint end
")
#> Error: <text>:5:8: unexpected symbol
#> 4: 
#> 5: nolint start
#>           ^

Created on 2021-08-03 by the reprex package (v2.0.0)

Also happens when #' nolint start is replaced with # nolint start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions