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 [email protected]
This commit is contained in:
Ruben Ayrapetyan committed 2015-07-02 17:38:32 +03:00
1 parent 7d53133fcb
commit 2a78d24fce
3 files changed
+419 -48

No files matched your search

+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 ();
}