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

Syntax highlighting confused by JSTL replace pattern #83

Open
bbodien opened this issue Apr 5, 2017 · 0 comments
Open

Syntax highlighting confused by JSTL replace pattern #83

bbodien opened this issue Apr 5, 2017 · 0 comments
Labels

Comments

@bbodien
Copy link

bbodien commented Apr 5, 2017

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants