Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2017-03-24 11:41:36 +0300
committerMike Krüger <mkrueger@xamarin.com>2017-03-24 11:41:36 +0300
commita2060f18c243d70e58b7edb2f63b76515d295a8b (patch)
tree9348ab636dfe403d9e1f3e5fa7e8bd96cea0ebd3 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.TextMate
parent5f400f97f5edce2a19ebf86bbc99566f3e227401 (diff)
[Ide] Fixed text mate language comment recognition.
Comments after the first one weren't properly recognized.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.TextMate')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.TextMate/TextMateLanguage.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.TextMate/TextMateLanguage.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.TextMate/TextMateLanguage.cs
index 2cb1c230cd..7736a807e6 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.TextMate/TextMateLanguage.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.TextMate/TextMateLanguage.cs
@@ -64,14 +64,14 @@ namespace MonoDevelop.Ide.Editor.TextMate
string GetCommentStartString (int num)
{
- if (num > 1)
+ if (num > 0)
return "TM_COMMENT_START_" + (num + 1);
return "TM_COMMENT_START";
}
string GetCommentEndString (int num)
{
- if (num > 1)
+ if (num > 0)
return "TM_COMMENT_END_" + (num + 1);
return "TM_COMMENT_END";
}
@@ -148,7 +148,7 @@ namespace MonoDevelop.Ide.Editor.TextMate
{
lineComments = new List<string> ();
blockComments = new List<Tuple<string, string>> ();
- int i = 1;
+ int i = 0;
while (true) {
string start, end;
if (!ShellVariables.TryGetValue (GetCommentStartString (i), out start))