Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HJLebbink committed Jun 4, 2018
1 parent 64676e2 commit 999dfb3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion VS/CSHARP/asm-dude-vsix/CodeFolding/CodeFoldingTagger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ public IEnumerable<ITagSpan<IOutliningRegionTag>> GetTags(NormalizedSnapshotSpan
int startLineNumber = entire.Start.GetContainingLine().LineNumber;
int endLineNumber = entire.End.GetContainingLine().LineNumber;

//foreach (Region region in this._regions.ToArray()) //TODO expensive and ugly ToArray here to prevent a modification exception
foreach (Region region in this._regions)
{
if ((region.StartLine <= endLineNumber) && (region.EndLine >= startLineNumber))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private void Update_Word_Adornments()
{
//AsmDudeToolsStatic.Output_INFO(string.Format("{0}:Update_Word_Adornments. Keyword={1}", this.ToString(), this.NewWord));
//We have to replace all occurrences of special characters with escaped versions of that char since we cannot use verbatim strings.
string t = this.NewWord.Replace(".", "\\.").Replace("$", "\\$").Replace("?", "\\?").Replace("/", "\\/"); //TODO escape backslashes
string t = this.NewWord.Replace(".", "\\.").Replace("$", "\\$").Replace("?", "\\?").Replace("/", "\\/");
findData = new FindData(t, s)
{
FindOptions = FindOptions.WholeWord | FindOptions.SingleLine | FindOptions.UseRegularExpressions
Expand Down
2 changes: 1 addition & 1 deletion VS/CSHARP/asm-dude-vsix/OptionsPage/AsmDudeOptionsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ private void Save()
if (Settings.Default.SyntaxHighlighting_Opcode_Italic != this._asmDudeOptionsPageUI.ColorMnemonic_Italic)
{
Settings.Default.SyntaxHighlighting_Opcode_Italic = this._asmDudeOptionsPageUI.ColorMnemonic_Italic;
//TODO
//TODO fix that toggling italic is displayed immediately
//UpdateItalic(AsmClassificationDefinition.ClassificationTypeNames.Mnemonic, this._asmDudeOptionsPageUI.ColorMnemonic_Italic);
changed = true;
restartNeeded = true;
Expand Down
15 changes: 0 additions & 15 deletions VS/CSHARP/asm-dude-vsix/Tools/AsmDudeToolsStatic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,6 @@ public static string GetFileName(ITextBuffer buffer)
return null;
}

public static bool Proper_File(ITextBuffer buffer)
{
string filename = GetFileName(buffer);
if ((filename == null) ||
(filename.Length == 0) ||
(filename.EndsWith(".asm", StringComparison.OrdinalIgnoreCase)) ||
(filename.EndsWith(".cod", StringComparison.OrdinalIgnoreCase)) ||
(filename.EndsWith(".inc", StringComparison.OrdinalIgnoreCase)) ||
(filename.EndsWith(".s", StringComparison.OrdinalIgnoreCase)))
{
return true;
}
return false;
}

public static void Open_Disassembler()
{
try
Expand Down

0 comments on commit 999dfb3

Please sign in to comment.