Golang support
medifle opened this issue · comments
Like this theme!
It has almost the same color as my Goland Darcula when syntax matches. But many can be improved:
- package name
- package method/function/variable
- type
Like this theme!
It has almost the same color as my Goland Darcula when syntax matches. But many can be improved:
- package name
- package method/function/variable
- type
It will be very helpful if you post screenshots for these examples:
- package name
- package method/function/variable
- type
just to compare the colors and make some edits because I do not have GoLand IDE.
Take an example from here:
Comparison 1
Diff:
-
struct type
LanguageFeature
Language
File
-
package name
base64
fmt
filepath
jsoniter
-
package method
DecodeString
Sprintf
Unmarshal
Printf
Println
Ext
Errorf
ToLower
-
constant
languages
-
built-in function
panic
len
-
+
operator at line 87
From my observation, package method call shares the same color as function call.
err
is a mystery to me, some err
are highlighted in GoLand, others are not.
Comparison 2
Diff:
-
package name
processor
-
constant
- all the purple italic const
-
type
stateType
machine
-
receiver
m
inresetState
method
-
character
\t
,\n
,\r
at line 36
Let me know if you need other info, I am glad to provide more. BTW GoLand has a 30 days trial if there is a need to extract the color.
Thank you for your contribution.
Since VSCode relies on textmate scopes as a selector for theme which sometimes can not differentiate some syntax like Goland.
I cannot highlight these syntaxes:
- struct type
- constant
- type
- receiver
I downloaded GoLand and from my observation, it uses some machine learning for highlighting.
However, these elements are improved:
- package name
- package method
- built-in functions
- operators
- characters
and a new version released, you can update the theme now ;)