mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
Implemented interpolated sail parsing.
Added test case for interpolated sail parsing.
This commit is contained in:
parent
b6cfb010d4
commit
0ad29f19ce
@ -294,13 +294,19 @@
|
||||
%- star
|
||||
;~ pose
|
||||
;~(pfix bas ;~(pose (mask "-+*%;\{") bas doq bix:ab))
|
||||
;~(plug tuna-mode sump:vast)
|
||||
(stag %tape sump:vast)
|
||||
;~(pfix sem bracketed-elem(in-tall-form |))
|
||||
inline-embed
|
||||
;~(less bas kel ?:(in-tall-form fail doq) prn)
|
||||
?:(lin fail ;~(less (jest '\0a"""') (just '\0a')))
|
||||
==
|
||||
::
|
||||
++ inline-embed
|
||||
%+ cook |=(a/$^(manx tuna) a)
|
||||
;~ pose
|
||||
;~(pfix sem bracketed-elem(in-tall-form |))
|
||||
;~(plug tuna-mode sump:vast)
|
||||
(stag %tape sump:vast)
|
||||
==
|
||||
::
|
||||
++ collapse-chars :: beet to tuna
|
||||
|= reb/(list $@(@ $^(manx tuna)))
|
||||
^- marl
|
||||
@ -353,6 +359,7 @@
|
||||
{$code p/tape} :: code literal
|
||||
{$text p/tape} :: text symbol
|
||||
{$link p/(list graf) q/tape} :: URL
|
||||
{$expr p/=<($^(tuna manx) dynamic)}
|
||||
==
|
||||
--
|
||||
|% ::
|
||||
@ -643,6 +650,10 @@
|
||||
;~(pfix cen ;~(pose sym buc pam bar qut nuck:so))
|
||||
==
|
||||
::
|
||||
:: {interpolated} sail
|
||||
::
|
||||
(stag %expr inline-embed:(sail |))
|
||||
::
|
||||
:: just a byte
|
||||
::
|
||||
(stag %text (cook trip ;~(less ace prn)))
|
||||
@ -681,6 +692,7 @@
|
||||
^- marl:dynamic
|
||||
?- -.nex
|
||||
$text !! :: handled separately
|
||||
$expr [p.nex]~
|
||||
$bold [[%b ~] ^$(gaf p.nex)]~
|
||||
$talc [[%i ~] ^$(gaf p.nex)]~
|
||||
$code [[%code ~] ;/((cape p.nex)) ~]~
|
||||
|
3
web/unmark/6.txt
Normal file
3
web/unmark/6.txt
Normal file
@ -0,0 +1,3 @@
|
||||
*brown fox* ;{s "ignoreme"} jumped over
|
||||
|
||||
;div#test: hello world
|
Loading…
Reference in New Issue
Block a user