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.