Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ internal sealed class CustomLspSemanticTokenNames
public const string Punctuation = "punctuation";
public const string StringVerbatim = "stringVerbatim";
public const string StringEscapeCharacter = "stringEscapeCharacter";
public const string ArrayName = "array";
public const string PointerName = "pointer";
public const string FunctionPointerName = "functionPointer";
public const string RecordClassName = "recordClass";
public const string DelegateName = "delegate";
public const string ModuleName = "module";
Expand Down Expand Up @@ -92,6 +95,9 @@ internal sealed class CustomLspSemanticTokenNames
[ClassificationTypeNames.Punctuation] = Punctuation,
[ClassificationTypeNames.VerbatimStringLiteral] = StringVerbatim,
[ClassificationTypeNames.StringEscapeCharacter] = StringEscapeCharacter,
[ClassificationTypeNames.ArrayName] = ArrayName,
[ClassificationTypeNames.PointerName] = PointerName,
[ClassificationTypeNames.FunctionPointerName] = FunctionPointerName,
[ClassificationTypeNames.RecordClassName] = RecordClassName,
[ClassificationTypeNames.DelegateName] = DelegateName,
[ClassificationTypeNames.ModuleName] = ModuleName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ internal readonly struct SemanticTokensSchema
[ClassificationTypeNames.EnumMemberName] = SemanticTokenTypes.EnumMember,
[ClassificationTypeNames.EventName] = SemanticTokenTypes.Event,
[ClassificationTypeNames.PreprocessorKeyword] = SemanticTokenTypes.Macro,
[ClassificationTypeNames.ArrayName] = SemanticTokenTypes.Class,
[ClassificationTypeNames.PointerName] = SemanticTokenTypes.Struct,
[ClassificationTypeNames.FunctionPointerName] = SemanticTokenTypes.Struct,
// in https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#standard-token-types-and-modifiers
[ClassificationTypeNames.LabelName] = "label",
}).ToImmutableDictionary();
Expand Down
33 changes: 33 additions & 0 deletions src/VisualStudio/Core/Def/ColorSchemes/VisualStudio2019.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
<Color Name="type parameter name">
<Foreground Type="CT_RAW" Source="FF2B91AF" />
</Color>
<Color Name="array name">
</Color>
<Color Name="pointer name">
</Color>
<Color Name="function pointer name">
</Color>
<Color Name="field name">
</Color>
<Color Name="enum member name">
Expand Down Expand Up @@ -230,6 +236,12 @@
<Color Name="type parameter name">
<Foreground Type="CT_RAW" Source="FF2B91AF" />
</Color>
<Color Name="array name">
</Color>
<Color Name="pointer name">
</Color>
<Color Name="function pointer name">
</Color>
<Color Name="field name">
</Color>
<Color Name="enum member name">
Expand Down Expand Up @@ -414,6 +426,12 @@
<Color Name="type parameter name">
<Foreground Type="CT_RAW" Source="FF066555" />
</Color>
<Color Name="array name">
</Color>
<Color Name="pointer name">
</Color>
<Color Name="function pointer name">
</Color>
<Color Name="field name">
</Color>
<Color Name="enum member name">
Expand Down Expand Up @@ -595,6 +613,12 @@
<Color Name="type parameter name">
<Foreground Type="CT_RAW" Source="FFB8D7A3" />
</Color>
<Color Name="array name">
</Color>
<Color Name="pointer name">
</Color>
<Color Name="function pointer name">
</Color>
<Color Name="field name">
</Color>
<Color Name="enum member name">
Expand Down Expand Up @@ -780,6 +804,15 @@
<Color Name="type parameter name">
<Foreground Type="CT_SYSCOLOR" Source="00000008" />
</Color>
<Color Name="array name">
<Foreground Type="CT_SYSCOLOR" Source="00000008" />
</Color>
<Color Name="pointer name">
<Foreground Type="CT_SYSCOLOR" Source="00000008" />
</Color>
<Color Name="function pointer name">
<Foreground Type="CT_SYSCOLOR" Source="00000008" />
</Color>
<Color Name="field name">
<Foreground Type="CT_SYSCOLOR" Source="00000008" />
</Color>
Expand Down
Loading