diff --git a/base/cat/hood/breload/gate.hook b/base/cat/hood/breload/gate.hook new file mode 100644 index 0000000000..7f3ad66863 --- /dev/null +++ b/base/cat/hood/breload/gate.hook @@ -0,0 +1,12 @@ +:: +:::: /hook/gate/reload/hood/cat + :: +/? 314 +:: +:::: + !: +|= $: [now=@da eny=@uvI bec=beak] + [arg=(list term) ~] + == +:+ %hood-reload-desk %home +arg diff --git a/base/cat/hood/reload-desk/gate.hook b/base/cat/hood/reload-desk/gate.hook new file mode 100644 index 0000000000..fbc5fe7c97 --- /dev/null +++ b/base/cat/hood/reload-desk/gate.hook @@ -0,0 +1,12 @@ +:: +:::: /hook/gate/reload/hood/cat + :: +/? 314 +:: +:::: + !: +|= $: [now=@da eny=@uvI bec=beak] + [arg=[desk (list term)] ~] + == +:- %hood-reload-desk +arg diff --git a/base/cat/hood/reset/gate.hook b/base/cat/hood/reset/gate.hook new file mode 100644 index 0000000000..499122800e --- /dev/null +++ b/base/cat/hood/reset/gate.hook @@ -0,0 +1,11 @@ +:: +:::: /hook/gate/reset/hood/cat + :: +/? 314 +:: +:::: + !: +|= $: [now=@da eny=@uvI bec=beak] + [arg=~ ~] + == +[%hood-reset ~] diff --git a/base/lib/syntax/hoon.js b/base/lib/syntax/hoon.js index 726f06d3a5..0cb9b07834 100644 --- a/base/lib/syntax/hoon.js +++ b/base/lib/syntax/hoon.js @@ -110,7 +110,7 @@ CodeMirror.defineMode("hoon", function() { } if(stream.eat('`')){ - state.space = false + state.space = true return 'operator' } if(stream.sol() && stream.eatWhile(glyph)){ @@ -131,8 +131,10 @@ CodeMirror.defineMode("hoon", function() { return 'builtin' return 'operator' } - if(stream.eat(/[=:.^]/)) + if(stream.eat(/[=:.^]/)){ + state.space = true return 'operator' + } stream.next() return 'builtin' } @@ -154,4 +156,5 @@ CodeMirror.defineMode("hoon", function() { return res }); +CodeMirror.registerHelper("wordChars", "hoon", /[-\\w]/); CodeMirror.defineMIME("text/x-hoon", "hoon");