Add preprocessor definitions for various character codes, referenced in ECMA-262, and helpers for checking if a character falls into a ECMA-defined character category; remove lit_char_is_carriage_return and lit_char_is_new_line helpers.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -934,11 +934,11 @@ parse_string (void)
|
||||
{
|
||||
consume_char ();
|
||||
|
||||
if (lit_char_is_carriage_return (nc))
|
||||
if (nc == LIT_CHAR_CR)
|
||||
{
|
||||
nc = (ecma_char_t) LA (0);
|
||||
|
||||
if (lit_char_is_new_line (nc))
|
||||
if (nc == LIT_CHAR_LF)
|
||||
{
|
||||
consume_char ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user