Skip to content

Scripts that are not javascript are not highlighted correctly. #43

@w9

Description

@w9

For example, when writing an angular app, you can write some ng-template in inline:

html(data-ng-app="myApp")
  body
    script(type="text/ng-template" id="myTemplate")
      input.form-control(placeholder="Enter your name here")  // these two lines
      button.btn.btn-default OK!        // shouldn't be highlighted as javascript

In the above example, the code should be highlighted as jade. And for good reason: the script tag is not followed by a ., indicating that the following code, compiled by jade, will become tags anyways. So it is not reasonable to highlight them as anything but jade code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions