|
|
@@ -62,6 +62,12 @@ |
|
|
|
"precision" { return GT_PRECISION; } |
|
|
|
"invariant" { return GT_INVARIANT; } |
|
|
|
|
|
|
|
/* |
|
|
|
* Deprecated GLSL keywords |
|
|
|
*/ |
|
|
|
|
|
|
|
"attribute" { return GT_ATTRIBUTE; } |
|
|
|
|
|
|
|
/* |
|
|
|
* GLSL vector types |
|
|
|
*/ |
|
|
@@ -433,11 +439,18 @@ |
|
|
|
"#"[ \t]*"pragma" { return PREPROCESSOR_PRAGMA; } |
|
|
|
"#"[ \t]*"undef" { return PREPROCESSOR_UNDEF; } |
|
|
|
|
|
|
|
/* |
|
|
|
* GLSL preprocessor directives |
|
|
|
*/ |
|
|
|
|
|
|
|
"#"[ \t]*"version".* { /* ignore for now */ } |
|
|
|
|
|
|
|
/* |
|
|
|
* LolFx preprocessor directives |
|
|
|
*/ |
|
|
|
|
|
|
|
"#"[ \t]*"region" { return PREPROCESSOR_REGION; } |
|
|
|
"#"[ \t]*"region" { return PREPROCESSOR_REGION; } |
|
|
|
"#"[ \t]*"pragma"[ \t]*"lolfx".* { /* ignore for now */ } |
|
|
|
|
|
|
|
/* |
|
|
|
* HLSL reserved keywords |
|
|
|