x/tools/gopls: struct tags semantic token should be 'string' type #54066
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Currently gopls classifies struct tags comments as "comment" type token.
This caused editors using semantic token aware themes color the tags with the same color as comments.
Semantic token ON
Semantic token OFF
In TextMate-based grammar rule, vscode classified tags as strings.
According to the language spec,
Tag
isstring_lit
, so I think 'string' is more suitable than 'comment' unless there are other standard token types better.The text was updated successfully, but these errors were encountered: