Allow /* C-style comments */ in LSL scripts.

This fixes Mantis #3199. opensim-libs SVN r87 contains the corresponding
changes.
GenericGridServerConcept
Mike Mazur 2009-02-25 05:37:57 +00:00
parent 6515d8be0e
commit 64c14d2475
2 changed files with 17672 additions and 17518 deletions

View File

@ -368,6 +368,35 @@ default
Assert.AreEqual(expected, output); Assert.AreEqual(expected, output);
} }
[Test]
public void TestCStyleComments()
{
string input = @"/* this test tests comments
of the C variety
*/
default
{
touch_start(integer num_detected) /* this should be stripped */
{
/*
* fill
* in
* code
* here...
*/
}
}
";
string expected =
"\n public void default_event_touch_start(LSL_Types.LSLInteger num_detected)" +
"\n {" +
"\n }\n";
CSCodeGenerator cg = new CSCodeGenerator();
string output = cg.Convert(input);
Assert.AreEqual(expected, output);
}
[Test] [Test]
public void TestGlobalDefinedFunctions() public void TestGlobalDefinedFunctions()
{ {

File diff suppressed because it is too large Load Diff