fix parsing bug involving comments at the end of ARB v/f programs
This commit is contained in:
parent
e82dd8c6e1
commit
3ea80c1128
|
@ -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';
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue