patch: prevent hoon syntax regression
commit478329275301f6e1e00e6e866b157c0533b7d916
authorMatilde Park <matilde.park@gmail.com>
dateFri 2 Jul 2021, 14:20 (5 years ago)
parentb8da218
patches/prismjs+1.24.0.patch+2−2
@@ -15,12 +15,12 @@ index ac6ad14..8401713 100644
1515 "optional": [
1616diff --git a/node_modules/prismjs/components/prism-hoon.js b/node_modules/prismjs/components/prism-hoon.js
1717new file mode 100644
18−index 0000000..0e4cf3a
18+index 0000000..b5f5a79
1919--- /dev/null
2020+++ b/node_modules/prismjs/components/prism-hoon.js
2121@@ -0,0 +1,30 @@
2222+Prism.languages.hoon = {
23−+ constant: /(?:%\.n)|(?:%\.y)|(?:%[\w-]*[\w\d]?)/,
23++ constant: /(?:%\.n)|(?:%\.y)|(?:%[\w-]+\w?)/,
2424+ comment: {
2525+ pattern: /::.*/,
2626+ lookahead: true,