From 22a94474f8cf8a4e34eacbce3ef58ccdd8949f2f Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 1 Oct 2020 04:41:51 -0600 Subject: no nested comments oops --- syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax.md b/syntax.md index 8b1c169..1555409 100644 --- a/syntax.md +++ b/syntax.md @@ -154,6 +154,6 @@ A nonempty sequence of characters is considered to be *whitespace* if each chara A *comment* can be either a *line comment* or a *block comment*. -A *line comment* begins with the characters `//` if they occur outside of a string literal and ends with a newline character U+000A. +A *line comment* begins with the characters `//` if they occur outside of a string literal or comment, and ends with a newline character U+000A. -A *block comment* begins with the characters `/*` if they occur outside of a string literal and ends with the characters `*/`. +A *block comment* begins with the characters `/*` if they occur outside of a string literal or comment, and ends with the characters `*/`. -- cgit v1.2.3