Fixed the parsing of extensions.

This commit is contained in:
Stefanos A. 2013-10-26 00:07:00 +02:00
parent 7cc3947cfb
commit d992f9474f

View file

@ -35,7 +35,7 @@ namespace CHeaderToXML
class GLParser : Parser
{
static readonly Regex extensions = new Regex(
"(ARB|EXT|ATI|NV|SUNX|SUN|SGIS|SGIX|SGI|MESA|3DFX|IBM|GREMEDY|HP|INTEL|PGI|INGR|APPLE|OML|I3D)",
@"3DFX|(?!(?<=[1-4])D)[A-Z]{2,}",
RegexOptions.RightToLeft | RegexOptions.Compiled);
static readonly char[] splitters = new char[] { ' ', '\t', ',', '(', ')', ';', '\n', '\r' };
@ -81,11 +81,6 @@ namespace CHeaderToXML
new XAttribute("name", words[0]),
new XAttribute("extension", extension));
if (words[0].Contains("ShaderSource"))
{
System.Diagnostics.Debugger.Break();
}
CurrentMode = ParserModes.Func;
}
else if (current != null)