diff --git a/Codist/Taggers/CSharpTagger.cs b/Codist/Taggers/CSharpTagger.cs index 9ad74ef3..52080b5f 100644 --- a/Codist/Taggers/CSharpTagger.cs +++ b/Codist/Taggers/CSharpTagger.cs @@ -805,12 +805,16 @@ static IEnumerable GetClassificationType(SyntaxNode node, Sem case SymbolKind.Field: var f = symbol as IFieldSymbol; - yield return f.IsConst ? - f.ContainingType.TypeKind == TypeKind.Enum ? _Classifications.EnumField - : _Classifications.ConstField - : f.IsReadOnly ? _Classifications.ReadonlyField - : f.IsVolatile ? _Classifications.VolatileField - : _Classifications.Field; + if (f.IsConst) { + yield return f.ContainingType.TypeKind == TypeKind.Enum ? _Classifications.EnumField + : _Classifications.ConstField; + yield break; + } + else { + yield return f.IsReadOnly ? _Classifications.ReadonlyField + : f.IsVolatile ? _Classifications.VolatileField + : _Classifications.Field; + } break; case SymbolKind.Property: