Skip to content

Commit 947cf57

Browse files
author
Viktor Chernev
committed
fix bugStarComments
1 parent 16e917b commit 947cf57

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

@DescribeCompilerAPI/DescribeCompiler.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,8 @@ private string EncodeNonAsciiCharacters(string value)
17871787
sb.Append('\\');
17881788
}
17891789
else if (value[i] == '*'
1790-
&& value[i + 1] != '/'
1790+
&& value[i + 1] != '/'
1791+
&& value[i - 1] != '/'
17911792
&& value[i - 1] != '\\')
17921793
{
17931794
sb.Append('\\');
@@ -1836,7 +1837,7 @@ private string EncodeNonAsciiCharacters(string value)
18361837

18371838

18381839
//private const
1839-
const string COMPILER_NAME = "D#SCRIBE COMPILER v0.9";
1840+
const string COMPILER_NAME = "D#SCRIBE COMPILER v0.9.1";
18401841
const GrammarName DEFAULT_GRAMMAR = GrammarName.Decorators;
18411842
}
18421843
}

Documentation/v 9.1/next/bugDecoratorOnProductionItem.txt renamed to Documentation/v 9.1/bugDecoratorOnProductionItem.txt

File renamed without changes.

Documentation/v 9.1/next/bugUnclickableLinksInProductionHeads.txt renamed to Documentation/v 9.1/bugUnclickableLinksInProductionHeads.txt

File renamed without changes.
File renamed without changes.

Documentation/v 9.1/next/bugStarComments.txt renamed to Documentation/v 9.1/fixed/@bugStarComments.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
BUG: There is a bug related to star comments - we might be errorneously escaping the stars for example?
2-
1+
BUG: There is a bug related to star comments - we might be errorneously escaping the stars for example? - yes, we did that
2+
In EncodeNonAsciiCharacters we forgot to check if star is prefixed by "/" forward slash to not escape it
33

44
directives -> namespace <treeofall.private.job>;
55

0 commit comments

Comments
 (0)