Skip to content

Commit 050d673

Browse files
authored
Fix YAML slash escapes. (#169)
- fix: Allow escaped slashes (e.g "\/") in YAML strings
1 parent bdcb5dc commit 050d673

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.lock

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ codespan = "0.11.1"
1717
codespan-reporting = "0.11.1"
1818
lalrpop-util = "0.19.5"
1919
serde_json = "1.0.64"
20-
yaml-rust = "0.4.5"
20+
yaml-rust = { git = "https://github.com/curvelogic/yaml-rust", rev = "966f2a26245dda59daf605be1983d318db5e46f5" }
2121
unic-ucd-category = "0.9.0"
2222
itertools = "0.10.0"
2323
thiserror = "1.0.24"

harness/test/011_yaml.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ y:
33
- z: 1
44
- z: 2
55

6+
z: "escaping\/slashes\/works"
7+
68
RESULT: PASS

0 commit comments

Comments
 (0)