Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 16941 ]] Implement escaped literals #5781

Open
wants to merge 2 commits into
base: develop
Choose a base branch
Loading
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[[ Bug 17417 ]] Allow escaping return & whitespace for multiline literal
  • Loading branch information
montegoulding committed Aug 14, 2017
commit 71ef31a1a3ba884e9ab3acf49da090fd6b84d29e
9 changes: 8 additions & 1 deletion 9 engine/src/scriptpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ MCNameRef MCScriptPoint::gettoken_nameref(void)
continue;
}
break;
case '\n':
t_result_char = *t_format++;
while (*t_format == ' ' || *t_format == '\t')
t_format++;
t_format--;
break;
default:
if (isdigit(*t_format))
{
Expand Down Expand Up @@ -1341,7 +1347,8 @@ Parse_stat MCScriptPoint::next(Symbol_type &type)
advance(2);
else
{
if (newtype == ST_EOL || newtype == ST_EOF)
if (((type == ST_LIT || !t_escaping) && newtype == ST_EOL) ||
newtype == ST_EOF)
{
MCperror->add(PE_PARSE_BADLIT, *this);
return PS_ERROR;
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.