Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Syntax highlighting confused by JSTL replace pattern #83

Open

Description

@bbodien

Description

The syntax highlighting for JavaServer Pages is being thrown off by a JSTL string replace pattern that consists of an escaped single quote:

<c:set var="foo" value="${fn:replace(entry.name, '\\'', '&#39;')}" />
<c:set var="bar" value="test" />

The problem is with the '\\'' segment.

Steps to Reproduce

  1. Open a new editor tab and set the language to JavaServer Pages
  2. Paste in the lines above

Expected behavior: [What you expect to happen]

The syntax highlighting rules should catch the mismatched single quotes and ignore them.

Actual behavior: [What actually happens]

The odd number of single quotes confuses the syntax highlighter, and it treats any successive lines in the file as being string values.

Reproduces how often: [What percentage of the time does it reproduce?]

100%

Versions

Atom 1.15.0 x64
Running on OS X 10.11.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions