Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4414 from mono/backport-pr-4413-to-d15-7
Browse files Browse the repository at this point in the history
[d15-7] Fixes issue #4329 Enum Color Syntax Incorrect
  • Loading branch information
mkrueger committed Apr 3, 2018
2 parents 08f4388 + ad427e0 commit 740a89f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -260,7 +260,7 @@ static EditorTheme ConvertToEditorTheme (ColorScheme colorScheme)
settings.Add (new ThemeSetting ("User Types(Mutable)", new List<string> { EditorThemeColors.UserTypesMutable }, ConvertChunkStyle (colorScheme.UserTypesMutable)));

settings.Add (new ThemeSetting ("User Field", new List<string> { EditorThemeColors.UserField }, ConvertChunkStyle (colorScheme.UserFieldDeclaration)));
settings.Add (new ThemeSetting ("User Enum Member", new List<string> { EditorThemeColors.UserField }, ConvertChunkStyle (colorScheme.UserFieldDeclaration)));
settings.Add (new ThemeSetting ("User Enum Member", new List<string> { EditorThemeColors.UserEnumMember }, ConvertChunkStyle (colorScheme.UserVariableDeclaration)));
settings.Add (new ThemeSetting ("User Constant", new List<string> { EditorThemeColors.UserConstant }, ConvertChunkStyle (colorScheme.UserFieldDeclaration)));

settings.Add (new ThemeSetting ("User Property", new List<string> { EditorThemeColors.UserProperty }, ConvertChunkStyle (colorScheme.UserPropertyDeclaration)));
Expand Down
Expand Up @@ -214,7 +214,8 @@ public override (bool, ScopeStack) MatchesStack (ScopeStack scopeStack, ref stri
{
if (scopeStack.IsEmpty)
return mismatch;
bool found = scopeStack.Peek ().StartsWith (scope, StringComparison.Ordinal);
var top = scopeStack.Peek ();
bool found = top == scope || top.Length > scope.Length && top.StartsWith (scope, StringComparison.Ordinal) && top[scope.Length] == '.';
if (found) {
matchExpr = scope;
return (found, scopeStack.Pop ());
Expand Down

0 comments on commit 740a89f

Please sign in to comment.