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

Function application in parentheses breaks syntax highlighting #155

Closed
nathancarter opened this issue Oct 13, 2017 · 1 comment · Fixed by #156
Closed

Function application in parentheses breaks syntax highlighting #155

nathancarter opened this issue Oct 13, 2017 · 1 comment · Fixed by #156
Labels

Comments

@nathancarter
Copy link

nathancarter commented Oct 13, 2017

Description

In literate mode, if a function application is inside a parentheses, then syntax highlighting becomes broken as shown below.

Steps to Reproduce

  1. Create a new file.
  2. Save it with the .litcoffee extension.
  3. Enter the code below.
Example comments correctly highlighted

    ( foo bar ).baz()

Example comments incorrectly highlighted.

Expected behavior: Text without indentation should always be treated and highlighted as Markdown, never mistaken for Coffeescript code. GitHub highlights it correctly in the code shown above.

Actual behavior: The following screenshot shows that the syntax highlighter has begun to treat unindented code as if it were Coffeescript code.

screen shot 2017-10-13 at 10 41 18 am

Reproduces how often: 100%

Versions

Atom : 1.21.0

Electron: 1.6.9

Chrome : 56.0.2924.87

Node : 7.4.0

Mac OS X 10.11.6

@nathancarter
Copy link
Author

Not sure if the root cause here is like that of #153 and #154 but they have the same result, so I'm linking them.

@nathancarter nathancarter changed the title Function application in an argument list in parentheses breaks syntax highlighting Function application in parentheses breaks syntax highlighting Oct 13, 2017
@50Wliu 50Wliu added the bug label Oct 16, 2017
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