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:
Ruben Ayrapetyan
2015-07-01 21:57:15 +03:00
parent 7d53133fcb
commit 2a78d24fce
3 changed files with 419 additions and 48 deletions
+2 -2
View File
@@ -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 ();
}