提交 3337bf58 编写于 作者: C Cyrus Najmabadi

Do not hardcode C#

上级 6cdeee78
......@@ -34,7 +34,7 @@ public RegexEmbeddedClassifier(RegexEmbeddedLanguage language)
Workspace workspace, SyntaxToken token, SemanticModel semanticModel,
ArrayBuilder<ClassifiedSpan> result, CancellationToken cancellationToken)
{
if (!workspace.Options.GetOption(RegularExpressionsOptions.ColorizeRegexPatterns, LanguageNames.CSharp))
if (!workspace.Options.GetOption(RegularExpressionsOptions.ColorizeRegexPatterns, semanticModel.Language))
{
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册