private static bool IncrementIndexToSkipAnyComments(FastString script, ref int index)
{
if (index < script.Length - 1)
{
if ((script[index] == '/') && (script[index + 1] == '/'))
{
while ((script[index] != '\r') && (index < script.Length - 1))
{
index++;
}
}
if ((script[index] == '/') && (script[index + 1] == '*'))
{
index = script.IndexOf("*/", index + 2);
if (index < 0)
{
index = script.Length - 1;
return true;
}
}
}
return false;
}