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

Coloring of strings could be misleading #17

Open
Tracked by #1
nicolaiskogheim opened this issue Oct 22, 2014 · 5 comments
Open
Tracked by #1

Coloring of strings could be misleading #17

nicolaiskogheim opened this issue Oct 22, 2014 · 5 comments
Labels

Comments

@nicolaiskogheim
Copy link

I just had an issue with a line of code like this:

script: "coverage report --omit="*__init__.py""

It took me a little while to figure out my copypaste error with the nested double quotes.

This is the same line with githubs .yml syntax coloring

script: "coverage report --omit="*__init__.py""

There it is very easy to see where I went wrong.

Screen from atom
screenshot

AgentAntelope pushed a commit to AgentAntelope/language-yaml that referenced this issue Dec 6, 2014
@floscher
Copy link

This is the same line with githubs .yml syntax coloring

script: "coverage report --omit="*__init__.py""

There it is very easy to see where I went wrong.

GitHub also uses this grammar for syntax highlighting, so by now it has the same appearance as in atom ;-)

Currently e.g. JSON-highlighting still shows the behaviour you probably meant:

@nicolaiskogheim
Copy link
Author

Good catch! You are absolutely right. Pity that Github has this issue now.

@winstliu winstliu added the bug label Nov 16, 2015
@winstliu
Copy link
Contributor

I took a look at this and I don't believe this is a bug. The quoted parts get string.quoted.double.yaml, while the unquoted part (*__init__.py) gets string.unquoted.yaml. Those two can be styled differently.

I'm closing this, but please feel free to correct me if I'm wrong.

@winstliu winstliu removed the bug label Sep 12, 2016
@nicolaiskogheim
Copy link
Author

Ah, okay. Thank you for taking a look :)

@winstliu
Copy link
Contributor

winstliu commented Oct 6, 2016

After some thought I've decided to reopen this as we really shouldn't be highlighting that inner segment as unquoted strings.

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.

3 participants