diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-10 10:25:01 -0700 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-10 12:39:36 -0700 |
commit | 80c8017a643dfb655e4e1500e1c57e3908529c27 (patch) | |
tree | 446d70a93453b63e24db51f2d58fbe5dc89fee42 /src/mesa/shader/slang/library/slang_shader_syn.h | |
parent | e5359401d68fbf52e237b9f95964ad50534d974a (diff) |
mesa: allows 'f' suffix on GLSL float literals
Diffstat (limited to 'src/mesa/shader/slang/library/slang_shader_syn.h')
-rw-r--r-- | src/mesa/shader/slang/library/slang_shader_syn.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/library/slang_shader_syn.h b/src/mesa/shader/slang/library/slang_shader_syn.h index 86f6abe024..f1fc9ca883 100644 --- a/src/mesa/shader/slang/library/slang_shader_syn.h +++ b/src/mesa/shader/slang/library/slang_shader_syn.h @@ -671,11 +671,13 @@ "identifier\n" " id_character_first .emit * .and .loop id_character_next .emit * .and .true .emit '\\0';\n" "float\n" -" float_1 .or float_2;\n" +" float_1 .or float_2 .or float_3;\n" "float_1\n" -" float_fractional_constant .and float_optional_exponent_part;\n" +" float_fractional_constant .and float_optional_exponent_part .and optional_f_suffix;\n" "float_2\n" -" float_digit_sequence .and .true .emit '\\0' .and float_exponent_part;\n" +" float_digit_sequence .and .true .emit '\\0' .and float_exponent_part .and optional_f_suffix;\n" +"float_3\n" +" float_digit_sequence .and .true .emit '\\0' .and 'f' .emit '\\0';\n" "float_fractional_constant\n" " float_fractional_constant_1 .or float_fractional_constant_2 .or float_fractional_constant_3;\n" "float_fractional_constant_1\n" @@ -698,6 +700,8 @@ " float_sign .or .true;\n" "float_sign\n" " '+' .or '-' .emit '-';\n" +"optional_f_suffix\n" +" 'f' .or .true;\n" "integer\n" " integer_hex .or integer_oct .or integer_dec;\n" "integer_hex\n" |