summaryrefslogtreecommitdiff
path: root/prism
diff options
context:
space:
mode:
authorAlex Koval <al3xander.koval@gmail.com>2023-12-09 13:58:39 +0100
committergit <svn-admin@ruby-lang.org>2023-12-10 03:06:36 +0000
commit04eb1b6f2630a07b3a4140e593a4973493a71b92 (patch)
tree93e541e4eb92bfa5dfaf6971bcb59ffa78c547da /prism
parentf64357540eabad0f1bfaa6be60710d153325b064 (diff)
[ruby/prism] fix: escape newline
https://github.com/ruby/prism/commit/a28b427dcc
Diffstat (limited to 'prism')
-rw-r--r--prism/diagnostic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/prism/diagnostic.c b/prism/diagnostic.c
index c537d373aa..eaf6112d18 100644
--- a/prism/diagnostic.c
+++ b/prism/diagnostic.c
@@ -94,10 +94,10 @@ static const char* const diagnostic_messages[PM_DIAGNOSTIC_ID_LEN] = {
[PM_ERR_CLASS_NAME] = "expected a constant name after `class`",
[PM_ERR_CLASS_SUPERCLASS] = "expected a superclass after `<`",
[PM_ERR_CLASS_TERM] = "expected an `end` to close the `class` statement",
- [PM_ERR_CLASS_UNEXPECTED_END] = "unexpected `end`, expecting ';' or '\n'",
+ [PM_ERR_CLASS_UNEXPECTED_END] = "unexpected `end`, expecting ';' or '\\n'",
[PM_ERR_CONDITIONAL_ELSIF_PREDICATE] = "expected a predicate expression for the `elsif` statement",
[PM_ERR_CONDITIONAL_IF_PREDICATE] = "expected a predicate expression for the `if` statement",
- [PM_ERR_CONDITIONAL_PREDICATE_TERM] = "expected `then` or `;` or '\n'",
+ [PM_ERR_CONDITIONAL_PREDICATE_TERM] = "expected `then` or `;` or '\\n'",
[PM_ERR_CONDITIONAL_TERM] = "expected an `end` to close the conditional clause",
[PM_ERR_CONDITIONAL_TERM_ELSE] = "expected an `end` to close the `else` clause",
[PM_ERR_CONDITIONAL_UNLESS_PREDICATE] = "expected a predicate expression for the `unless` statement",