HS: generator hand-rolls + transition possessive target (+4 tests)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s
Parser: add 'the ...' as a recognized transition target in parse-transition-cmd's tgt cond, enabling 'transition the next <div/>'s *width from A to B'. Generator MANUAL_TEST_BODIES for 4 previously-SKIP tests: - can transition on query ref with possessive (transition suite, 17/17) - can write to next element with put command (relativePositionalExpression, 23/23) - parse error at EOF on trailing newline does not crash (core/parser, 13/14) - halt works outside of event context (halt suite, 7/7) Also fix hs-kernel-eval.js navigator assignment for Node.js v22 (read-only global). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1818,7 +1818,7 @@
|
||||
(fn
|
||||
()
|
||||
(let
|
||||
((tgt (cond ((and (= (tp-type) "ident") (= (tp-val) "element")) (do (adv!) (parse-atom))) ((and (= (tp-type) "keyword") (= (tp-val) "its")) (do (adv!) (list (quote ref) "it"))) ((= (tp-type) "id") (parse-atom)) ((= (tp-type) "class") (parse-atom)) ((= (tp-type) "selector") (parse-atom)) (true nil))))
|
||||
((tgt (cond ((and (= (tp-type) "ident") (= (tp-val) "element")) (do (adv!) (parse-atom))) ((and (= (tp-type) "keyword") (= (tp-val) "its")) (do (adv!) (list (quote ref) "it"))) ((= (tp-type) "id") (parse-atom)) ((= (tp-type) "class") (parse-atom)) ((= (tp-type) "selector") (parse-atom)) ((= (tp-val) "the") (parse-atom)) (true nil))))
|
||||
(define
|
||||
parse-one-transition
|
||||
(fn
|
||||
|
||||
Reference in New Issue
Block a user