-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distinguish TSSymbol from TSVariable #112
Comments
I think that's reasonable. In the colorscheme we highlight the general purpose group For reference, I ran a GitHub search for
|
Your example shows an app configuration so it's clear that it's full of atoms (symbols) as all of them are well-known config keys. IMO they should pop out to separate them from variables. So I still think the change would make sense. But of course it all also boils down to personal taste. Even here at github they use different colors (blue vs. black). They are almost not distinguishable but github's color scheme in general has less contrast. defmodule KV.BucketTest do
use ExUnit.Case, async: true
setup do
{:ok, bucket} = KV.Bucket.start_link([])
%{bucket: bucket}
end
test "stores values by key", %{bucket: bucket} do
assert KV.Bucket.get(bucket, "milk") == nil
KV.Bucket.put(bucket, "milk", 3)
assert KV.Bucket.get(bucket, "milk") == 3
end
end |
@sainnhe I'm thinking about linking For information, these are linked to |
@antoineco Sorry for late reply. It looks good to me. I don't write Ruby and Elixir so I'd respect your opinion on this. |
In the current implementation
TSSymbol
(@symbol
) andTSVariable
(@variable
) are both linked toFg
.But I think that symbols have a quite different meaning in most languages, more like constants. So I suggest to make them also visually distinguishable from variables.
For example in Elixir a symbol (i.e. atom) is a global constant that looks like
:foo
orfoo:
.The default schema makes it hard to see the difference.
Here I have
:hi link TSSymbol Orange
:The text was updated successfully, but these errors were encountered: