on master help sign in
patch: prevent hoon syntax regression
4783292Matilde Park
patches/prismjs+1.24.0.patch+2−2
@@ -15,12 +15,12 @@ index ac6ad14..8401713 100644
15 "optional": [
15 "optional": [
16diff --git a/node_modules/prismjs/components/prism-hoon.js b/node_modules/prismjs/components/prism-hoon.js
16diff --git a/node_modules/prismjs/components/prism-hoon.js b/node_modules/prismjs/components/prism-hoon.js
17new file mode 100644
17new file mode 100644
18−index 0000000..0e4cf3a
18+index 0000000..b5f5a79
19--- /dev/null
19--- /dev/null
20+++ b/node_modules/prismjs/components/prism-hoon.js
20+++ b/node_modules/prismjs/components/prism-hoon.js
21@@ -0,0 +1,30 @@
21@@ -0,0 +1,30 @@
22+Prism.languages.hoon = {
22+Prism.languages.hoon = {
23−+ constant: /(?:%\.n)|(?:%\.y)|(?:%[\w-]*[\w\d]?)/,
23++ constant: /(?:%\.n)|(?:%\.y)|(?:%[\w-]+\w?)/,
24+ comment: {
24+ comment: {
25+ pattern: /::.*/,
25+ pattern: /::.*/,
26+ lookahead: true,
26+ lookahead: true,