diff options
author | Markus Amsler <[email protected]> | 2008-03-31 14:58:28 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-31 14:58:48 -0600 |
commit | 3ea80c1128344a06b5d5c9cd45615a597047e402 (patch) | |
tree | 3f3dcb702b4bbf6009b3b5917ca529459a274185 /src/mesa/shader/arbprogram.syn | |
parent | e82dd8c6e1fa2fff5b960de26961080ba5e9651d (diff) |
fix parsing bug involving comments at the end of ARB v/f programs
Diffstat (limited to 'src/mesa/shader/arbprogram.syn')
-rw-r--r-- | src/mesa/shader/arbprogram.syn | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/arbprogram.syn b/src/mesa/shader/arbprogram.syn index f3aa1ad7249..b12c6a0eda5 100644 --- a/src/mesa/shader/arbprogram.syn +++ b/src/mesa/shader/arbprogram.syn @@ -2643,14 +2643,14 @@ white_char ' ' .or '\t' .or '\n' .or '\r'; comment_block - '#' .and .loop comment_char .and new_line; + '#' .and .loop comment_char .and optional_new_line; /* All ASCII characters except '\r', '\n' and '\0' */ comment_char '\x0E'-'\xFF' .or '\x01'-'\x09' .or '\x0B'-'\x0C'; -new_line - '\n' .or crlf .or '\0'; +optional_new_line + '\n' .or crlf .or .true; crlf '\r' .and '\n'; |