diff options
Diffstat (limited to 'main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SemanticRule.cs')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SemanticRule.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SemanticRule.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SemanticRule.cs index 0c8964a43d..6fb63701a5 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SemanticRule.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SemanticRule.cs @@ -56,6 +56,8 @@ namespace Mono.TextEditor { if (endOffset <= startOffset || startOffset >= doc.TextLength || inUpdate) return; + if (startChunk.Style != "Comment(Line)" && startChunk.Style != "Comment(Block)") + return; inUpdate = true; try { string text = doc.GetTextAt (startOffset, System.Math.Min (endOffset, doc.TextLength) - startOffset); |