Skip to content

Commit 6464271

Browse files
authored
Hoon: Fixed escaped strings (#3473)
1 parent 494dfab commit 6464271

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

components/prism-hoon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Prism.languages.hoon = {
44
greedy: true
55
},
66
'string': {
7-
pattern: /"[^"]*"|'[^']*'/,
7+
pattern: /"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,
88
greedy: true
99
},
1010
'constant': /%(?:\.[ny]|[\w-]+)/,

components/prism-hoon.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"blah\"blah"
2+
3+
----------------------------------------------------
4+
5+
[
6+
["string", "\"blah\\\"blah\""]
7+
]

0 commit comments

Comments
 (0)