You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
In literate mode, if a function application is inside a parentheses, then syntax highlighting becomes broken as shown below.
Steps to Reproduce
Create a new file.
Save it with the .litcoffee extension.
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.
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
The text was updated successfully, but these errors were encountered:
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
changed the title
Function application in an argument list in parentheses breaks syntax highlighting
Function application in parentheses breaks syntax highlighting
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
.litcoffee
extension.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.
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
The text was updated successfully, but these errors were encountered: