private IEnumerable <ClassificationSpan> ClassifyArtifact(ITextSnapshot snapshot, IArtifact artifact) { ITextRange range = artifact; // Don't highlight indent for indented code blocks if (artifact.LeftSeparator.Length > 0 && artifact.RightSeparator.Length == 0) { range = artifact.InnerRange; } yield return(new ClassificationSpan(range.ToSnapshotSpan(snapshot), codeType)); }