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

Syntax highlighting when string is first element of list #79

Closed
1 task done
smithtim opened this issue Oct 24, 2018 · 3 comments
Closed
1 task done

Syntax highlighting when string is first element of list #79

smithtim opened this issue Oct 24, 2018 · 3 comments

Comments

@smithtim
Copy link

smithtim commented Oct 24, 2018

Edit by @rsese to add issue template

Prerequisites

Description

screen shot 2018-10-24 at 10 58 49 am

The first element of the list is being highlighted as a function, when it should be highlighted as a string like the others.

For numbers, the highlighting is correct:

screen shot 2018-10-24 at 11 06 02 am

Steps to Reproduce

  1. Create a test.clj file with the content:
("foo" "bar" "baz")

Expected behavior: [What you expect to happen]

All 3 strings to be colored the same.

Actual behavior: [What actually happens]

screen shot 2018-10-24 at 10 58 49 am

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

100%

Versions

atom-nightly -v
Atom    : 1.34.0-nightly5
Electron: 2.0.11
Chrome  : 61.0.3163.100
Node    : 8.9.3

macOS 10.12.6


screen shot 2018-10-24 at 10 58 49 am

The first element of the list is being highlighted as a function, when it should be highlighted as a string like the others.

For numbers, the highlighting is correct:

screen shot 2018-10-24 at 11 06 02 am

atom version: 1.32.0
language-clojure version: 0.22.7

@rsese
Copy link

rsese commented Oct 30, 2018

Thanks for the report! I can reproduce this highlighting with ("foo" "bar" "baz") on macOS 10.12.6 with 1.34.0-nightly5. Do you think #63 is the same, or different but similar issue?

Also, for future issues please use the issue template, the information in the template is super helpful for us when triaging issues.

@smithtim
Copy link
Author

smithtim commented Nov 1, 2018

#63 may be the same issue. Perhaps the two could be merged by combining the examples from each? Here is a fuller example illustrating the behavior:

image

Notice that "foo" and "how" are blue, "bar" and "baz" are green, and "are you" and "test" are gray. Also, 1 and 2 are orange and 3 is green.

@rsese
Copy link

rsese commented Nov 14, 2018

#63 may be the same issue. Perhaps the two could be merged by combining the examples from each? Here is a fuller example illustrating the behavior:

Thanks I'll go ahead and do that 👍, we can always reopen this if necessary.

@rsese rsese closed this as completed Nov 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants