mirror of
https://github.com/urbit/shrub.git
synced 2024-12-03 05:43:18 +03:00
Slightly neater literal quote handling
This commit is contained in:
parent
84eab5b3b7
commit
f2756f3221
@ -221,13 +221,11 @@
|
||||
[[p.a (weld q.a b)] c]
|
||||
;~(plug tag-head tall-attrs tall-tail)
|
||||
::
|
||||
::HACK prefer static parse
|
||||
::REVIEW is there a better way to do this?
|
||||
++ hopefully-quote
|
||||
%+ cook |=(a/(list beer) a)
|
||||
;~ pose
|
||||
soil:vast
|
||||
(cook |=(b/twig [~ b]~) wide:vast)
|
||||
==
|
||||
%+ cook |=(a/twig ?:(?=($knit -.a) p.a [~ a]~))
|
||||
wide:vast
|
||||
::
|
||||
++ wide-attrs :: wide attributes
|
||||
%+ cook |=(a/(unit mart) (fall a ~))
|
||||
@ -377,7 +375,8 @@
|
||||
::
|
||||
?~ q.vex
|
||||
"syntax error: line {(scow %ud p.p.vex)}, column {(scow %ud q.p.vex)}"
|
||||
(poxo (freeze p.u.q.vex))
|
||||
?: [freeze=|] (poxo (freeze p.u.q.vex))
|
||||
(poxo ;;(manx q:(slap !>(..zuse) (steam p.u.q.vex))))
|
||||
:: ::
|
||||
++ cram :: parse unmark
|
||||
|= {naz/hair los/tape}
|
||||
|
@ -1,3 +1,3 @@
|
||||
*brown fox* ;{s "ignoreme"} jumped over
|
||||
*brown fox* ;{s "ignoreme"} ;{a(name "foo")} jumped over
|
||||
|
||||
;div#test: hello world
|
||||
|
Loading…
Reference in New Issue
Block a user