summaryrefslogtreecommitdiff
path: root/src/mesa/shader/arbprogram_syn.h
diff options
context:
space:
mode:
authorMarkus Amsler <markus.amsler@oribi.org>2008-03-31 14:58:28 -0600
committerBrian <brian.paul@tungstengraphics.com>2008-03-31 14:58:48 -0600
commit3ea80c1128344a06b5d5c9cd45615a597047e402 (patch)
tree3f3dcb702b4bbf6009b3b5917ca529459a274185 /src/mesa/shader/arbprogram_syn.h
parente82dd8c6e1fa2fff5b960de26961080ba5e9651d (diff)
fix parsing bug involving comments at the end of ARB v/f programs
Diffstat (limited to 'src/mesa/shader/arbprogram_syn.h')
-rw-r--r--src/mesa/shader/arbprogram_syn.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/arbprogram_syn.h b/src/mesa/shader/arbprogram_syn.h
index 3f3ab073cf..d95a5dede4 100644
--- a/src/mesa/shader/arbprogram_syn.h
+++ b/src/mesa/shader/arbprogram_syn.h
@@ -1244,11 +1244,11 @@
"white_char\n"
" ' ' .or '\\t' .or '\\n' .or '\\r';\n"
"comment_block\n"
-" '#' .and .loop comment_char .and new_line;\n"
+" '#' .and .loop comment_char .and optional_new_line;\n"
"comment_char\n"
" '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
-"new_line\n"
-" '\\n' .or crlf .or '\\0';\n"
+"optional_new_line\n"
+" '\\n' .or crlf .or .true;\n"
"crlf\n"
" '\\r' .and '\\n';\n"
"semicolon\n"