mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-01 19:46:36 +03:00
Merge pull request #6338 from urbit/i/6287/eof-syntax-error
clay: render syntax errors at end of file
This commit is contained in:
commit
8afe2d1ae9
@ -964,8 +964,14 @@
|
||||
%- mean %- flop
|
||||
=/ lyn p.hair
|
||||
=/ col q.hair
|
||||
^- (list tank)
|
||||
:~ leaf+"syntax error at [{<lyn>} {<col>}] in {<pax>}"
|
||||
leaf+(trip (snag (dec lyn) (to-wain:format (crip tex))))
|
||||
::
|
||||
=/ =wain (to-wain:format (crip tex))
|
||||
?: (gth lyn (lent wain))
|
||||
'<<end of file>>'
|
||||
(snag (dec lyn) wain)
|
||||
::
|
||||
leaf+(runt [(dec col) '-'] "^")
|
||||
==
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user