HLSL uses h or H as a float literal suffix, meaning "half".
authorRyan C. Gordon <icculus@icculus.org>
Mon, 22 Nov 2010 13:24:52 -0500
changeset 959 8a5d46db0cc6
parent 958 02e7826c8c75
child 960 d90fa2381bab
HLSL uses h or H as a float literal suffix, meaning "half".
mojoshader_lexer.re
--- a/mojoshader_lexer.re	Mon Nov 22 13:24:04 2010 -0500
+++ b/mojoshader_lexer.re	Mon Nov 22 13:24:52 2010 -0500
@@ -74,7 +74,7 @@
     L = [a-zA-Z_];
     H = [a-fA-F0-9];
     E = [Ee] [+-]? D+;
-    FS = [fFlL];
+    FS = [fFhH];
     IS = [uUlL]*;
     ESC = [\\] ([abfnrtv?'"\\] | "x" H+ | O+);
     PP = "#" [ \t]*;