Skip to content

Commit 75a0869

Browse files
authored
Clarify raw single-line string grammar (#425)
1 parent 91f7ec0 commit 75a0869

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

SPEC.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,8 @@ hex-digit := [0-9a-fA-F]
873873
874874
raw-string := '#' raw-string-quotes '#' | '#' raw-string '#'
875875
raw-string-quotes := '"' single-line-raw-string-body '"' | '"""' newline multi-line-raw-string-body newline unicode-space*) '"""'
876-
single-line-raw-string-body := (unicode - newline - disallowed-literal-code-points)*
876+
single-line-raw-string-body := '' | (single-line-raw-string-char - '"') single-line-raw-string-char* | '"' (single-line-raw-string-char - '"') single-line-raw-string-char*
877+
single-line-raw-string-char := unicode - newline - disallowed-literal-code-points
877878
multi-line-raw-string-body := (unicode - disallowed-literal-code-points)*
878879
879880
// Numbers

tests/test_cases/expected_kdl/raw_string_just_quote.kdl

-1
This file was deleted.

0 commit comments

Comments
 (0)