|
|
@ -31,6 +31,8 @@ namespace ICSharpCode.TextEditor.Document |
|
|
|
HighlightRuleSet ruleSet = null; |
|
|
|
HighlightRuleSet ruleSet = null; |
|
|
|
bool noEscapeSequences = false; |
|
|
|
bool noEscapeSequences = false; |
|
|
|
bool ignoreCase = false; |
|
|
|
bool ignoreCase = false; |
|
|
|
|
|
|
|
bool isBeginSingleWord = false; |
|
|
|
|
|
|
|
bool isEndSingleWord = false; |
|
|
|
|
|
|
|
|
|
|
|
internal HighlightRuleSet RuleSet { |
|
|
|
internal HighlightRuleSet RuleSet { |
|
|
|
get { |
|
|
|
get { |
|
|
@ -56,6 +58,18 @@ namespace ICSharpCode.TextEditor.Document |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsBeginSingleWord { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return isBeginSingleWord; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsEndSingleWord { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return isEndSingleWord; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public HighlightColor Color { |
|
|
|
public HighlightColor Color { |
|
|
|
get { |
|
|
|
get { |
|
|
|
return color; |
|
|
|
return color; |
|
|
@ -128,9 +142,18 @@ namespace ICSharpCode.TextEditor.Document |
|
|
|
begin = span["Begin"].InnerText.ToCharArray(); |
|
|
|
begin = span["Begin"].InnerText.ToCharArray(); |
|
|
|
beginColor = new HighlightColor(span["Begin"], color); |
|
|
|
beginColor = new HighlightColor(span["Begin"], color); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (span["Begin"].HasAttribute("singleword")) { |
|
|
|
|
|
|
|
this.isBeginSingleWord = Boolean.Parse(span["Begin"].GetAttribute("singleword")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (span["End"] != null) { |
|
|
|
if (span["End"] != null) { |
|
|
|
end = span["End"].InnerText.ToCharArray(); |
|
|
|
end = span["End"].InnerText.ToCharArray(); |
|
|
|
endColor = new HighlightColor(span["End"], color); |
|
|
|
endColor = new HighlightColor(span["End"], color); |
|
|
|
|
|
|
|
if (span["End"].HasAttribute("singleword")) { |
|
|
|
|
|
|
|
this.isEndSingleWord = Boolean.Parse(span["End"].GetAttribute("singleword")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|