mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-16 05:12:39 +00:00
Skip primary for comment lines in properties files
This commit is contained in:
@@ -66,7 +66,11 @@ public class PropertiesHighlightingDefinition : DarkHighlightingDefinition
|
||||
protected override void ColorizeLine(DocumentLine line)
|
||||
{
|
||||
var text = CurrentContext.Document.GetText(line);
|
||||
|
||||
if (!text.TrimStart().StartsWith("#"))
|
||||
{
|
||||
int idx = text.IndexOf('=');
|
||||
|
||||
if (idx > 0)
|
||||
{
|
||||
ChangeLinePart(
|
||||
@@ -78,3 +82,4 @@ public class PropertiesHighlightingDefinition : DarkHighlightingDefinition
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -67,7 +67,11 @@ public class PropertiesHighlightingDefinition : LightHighlightingDefinition
|
||||
protected override void ColorizeLine(DocumentLine line)
|
||||
{
|
||||
var text = CurrentContext.Document.GetText(line);
|
||||
|
||||
if (!text.TrimStart().StartsWith("#"))
|
||||
{
|
||||
int idx = text.IndexOf('=');
|
||||
|
||||
if (idx > 0)
|
||||
{
|
||||
ChangeLinePart(
|
||||
@@ -79,3 +83,4 @@ public class PropertiesHighlightingDefinition : LightHighlightingDefinition
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user