Skip to content

Preserve indentation of ignored blocks inside script tags #1567

@joseluisq

Description

@joseluisq

For example, I have this GA script and I would like to ignore it:

How ignore blocks inside script tag

But prettier says:

prettier-atom failed!
SyntaxError: Invalid regular expression: missing / (1:18)
> 1 | rettier-disable */
    |                   ^
  2 |       (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  3 |       (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  4 |       m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be taken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions