From ae807468f15e81ea3b62fee4741ee6b246e6df8b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 09:34:02 -0300 Subject: examples/live: the name a line defines a step larger, by its syntax node `paragraph` gives a span the scale 1.25 * 1.2 (`step`, 19.5 px against 16.25) where the grammar's class is the one queries/highlights.scm gives a definition's name node, `(definition name: (name) @keyword)`, and that node alone: chosen from the tree, not from the text's shape. The names are 12 pixels a character to the rest's 10, and a line with one is 26 high to 22. Everything of the last change lands on the mixed sizes, as everything is placed by sk.text.places: ranges, the carets, the problem's mark, the band, and the press that finds a number to drag. The scripts follow the layout: 220 on line 1 is now at x 182 to 212 (after the larger `out`), so the drags in test/live.script and test/story.script press at 187 instead of 181, every move 6 pixels on; the values they expect are the same. zig build test: 92 of 92 steps. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- examples/live/test/live.script | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'examples/live/test/live.script') diff --git a/examples/live/test/live.script b/examples/live/test/live.script index 1ddcec2..0d4b0c2 100644 --- a/examples/live/test/live.script +++ b/examples/live/test/live.script @@ -81,17 +81,17 @@ expect probe.len 3 expect probe.code[2].op mul key escape expect probe.len 0 -# Drag a number: 220 (line 1, columns 16..18; a column 10 pixels from 16, -# a line 22 from 16) pressed and dragged 40 pixels right is 230, then 12 -# left of where it was pressed is 217; the program follows; the drag is one -# step to undo. -down 181 27 -move 201 27 -move 221 27 +# Drag a number: 220 (line 1, x 182 to 212: the code is laid out from 16, +# 10 pixels a character, the name `out` a step larger at 12, its line 26 +# high) pressed and dragged 40 pixels right is 230, then 12 left of where +# it was pressed is 217; the program follows; the drag is one step to undo. +down 187 27 +move 207 27 +move 227 27 expect out.code[1].a 1130758144 -move 169 27 +move 175 27 expect out.code[1].a 1129906176 -up 169 27 +up 175 27 type u expect out.code[1].a 1130102784 # Square units: a disc of radius 0.5 (half the window's height is 1) is -- cgit v1.3