summaryrefslogtreecommitdiff
path: root/Source/DafnyExtension/WordHighlighter.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2013-06-11 10:24:31 -0700
committerGravatar wuestholz <unknown>2013-06-11 10:24:31 -0700
commit4314d2bf8634ddc573c4f0a4266a6771cb5eb696 (patch)
tree56dfaee0e35b989e8b7a600dd5c33119054f3fb5 /Source/DafnyExtension/WordHighlighter.cs
parente2508e12bf24a84f731884fcbd8f5f128dbf9f9a (diff)
DafnyExtension: Did some refactoring.
Diffstat (limited to 'Source/DafnyExtension/WordHighlighter.cs')
-rw-r--r--Source/DafnyExtension/WordHighlighter.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/DafnyExtension/WordHighlighter.cs b/Source/DafnyExtension/WordHighlighter.cs
index 03456c85..4c0fbb28 100644
--- a/Source/DafnyExtension/WordHighlighter.cs
+++ b/Source/DafnyExtension/WordHighlighter.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
-using System.Threading;
using System.Windows.Media;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Classification;
@@ -11,10 +10,14 @@ using Microsoft.VisualStudio.Text.Operations;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
+
namespace DafnyLanguage
{
+
#if LATER_MAYBE
- #region // (the current annoying) word highligher
+
+ #region (the current annoying) word highligher
+
internal class HighlightWordTagger : ITagger<HighlightWordTag>
{
ITextView View { get; set; }
@@ -82,7 +85,7 @@ namespace DafnyLanguage
|| char.IsWhiteSpace((currentRequest - 1).GetChar())) {
foundWord = false;
} else {
- // Try again, one character previous.
+ // Try again, one character previous.
//If the caret is at the end of a word, pick up the word.
word = TextStructureNavigator.GetExtentOfWord(currentRequest - 1);
@@ -206,6 +209,9 @@ namespace DafnyLanguage
return new HighlightWordTagger(textView, buffer, TextSearchService, textStructureNavigator) as ITagger<T>;
}
}
-#endregion
+
+ #endregion
+
#endif
+
}