1) Improve error recovery from arrays sized with a non constant.  2) Add double vectors to the lexer.  3) Default to vertex shaders for unrecognized file name suffixes.

Also fix issue where the keyword "shared" conflicts with the layout qualifier identifier "shared" by allowing the keyword in the layout qualifier identifier list.



git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@19948 e7fa87d3-cd2b-0410-9028-fcbf551c1848
diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp
index 3620f60..3a5fe55 100644
--- a/StandAlone/StandAlone.cpp
+++ b/StandAlone/StandAlone.cpp
@@ -216,7 +216,7 @@
 static EShLanguage FindLanguage(char *name)
 {
     if (!name)
-        return EShLangFragment;
+        return EShLangVertex;
 
     char *ext = strrchr(name, '.');
 
@@ -225,10 +225,9 @@
     
     if (ext = strrchr(name, '.')) {
         if (strncmp(ext, ".frag", 4) == 0) return EShLangFragment;
-        if (strncmp(ext, ".vert", 4) == 0) return EShLangVertex;
     }
 
-    return EShLangFragment;
+    return EShLangVertex;
 }