Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions css/elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--link-foreground-color: #206ca7;
--link-hover-foreground-color: #239dee;

--user-code-foreground-color: brown;
--annotation-foreground-color: brown;

--var-foreground-color: #218379;

Expand Down Expand Up @@ -87,7 +87,7 @@
--link-foreground-color: #439de2;
--link-hover-foreground-color: #80cafb;

--user-code-foreground-color: brown;
--annotation-foreground-color: brown;

--var-foreground-color: #4fb6ab;

Expand Down Expand Up @@ -333,9 +333,9 @@ span.e-user-code {
a.e-user-code::before,
span.e-user-code::before {
display: none;
color: var(--user-code-foreground-color);
color: var(--annotation-foreground-color);
background-color: var(--background-color);
border: 2pt solid var(--user-code-foreground-color);
border: 2pt solid var(--annotation-foreground-color);
padding: 0.3ex;
margin: 0 0.25em 0 0;
line-height: normal;
Expand All @@ -350,12 +350,12 @@ span.e-user-code::before {

a.e-user-code:hover::before,
span.e-user-code:hover::before {
background-color: var(--user-code-foreground-color);
background-color: var(--annotation-foreground-color);
color: var(--background-color);
}

html.show-ao-annotations a.e-user-code::before,
html.show-ao-annotations span.e-user-code::before {
html.show-uc-annotations a.e-user-code::before,
html.show-uc-annotations span.e-user-code::before {
display: inline-block;
}

Expand Down Expand Up @@ -458,6 +458,23 @@ emu-val {
font-weight: bold;
}

emu-alg li.early-exit::before {
display: none;
border: 2pt solid var(--annotation-foreground-color);
font-size: small;
color: var(--annotation-foreground-color);
padding: 0 0.25em;
background-color: var(--background-color);
content: '⏎';
margin-right: 0.25em;
line-height: 16px;
vertical-align: middle;
}

html.show-early-exits emu-alg li.early-exit::before {
display: inline-block;
}

/* depth 1 */
emu-alg ol,
/* depth 4 */
Expand Down
4 changes: 3 additions & 1 deletion js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,9 @@ function doShortcut(e) {
location = 'multipage/' + hash;
}
} else if (e.key === 'u') {
document.documentElement.classList.toggle('show-ao-annotations');
document.documentElement.classList.toggle('show-uc-annotations');
} else if (e.key === 'e') {
document.documentElement.classList.toggle('show-early-exits');
} else if (e.key === '?') {
document.getElementById('shortcuts-help').classList.toggle('active');
}
Expand Down
33 changes: 33 additions & 0 deletions src/Algorithm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,28 @@ export default class Algorithm extends Builder {
html = html.replace(/[ \t]+([»}])/g, ' $1');
node.innerHTML = html;

// mark steps containing early exits (return/throw/?) with the early-exit class
const earlyExitIndicator = /\b(?:return|throw)\b|[\s(]\?\s/i;
// these are macros in ECMA-262 that expand to steps that include a return/throw/?
const earlyExitMacro = /\bIfAbrupt(?:CloseIterator|CloseAsyncIterator|RejectPromise)\(/;
const note = /^(?:NOTE|Assert): /;
const acRe = /\ba new Abstract Closure\b/i;
for (const ol of node.querySelectorAll('ol')) {
const isTopLevel = ol.parentElement === node;
const isACBody =
!isTopLevel &&
ol.parentElement?.tagName === 'LI' &&
acRe.test(ownTextContent(ol.parentElement));
const items = ol.children;
for (let i = 0; i < items.length; i++) {
if (i === items.length - 1 && (isTopLevel || isACBody)) continue;
const text = ownTextContent(items[i]);
if ((earlyExitIndicator.test(text) || earlyExitMacro.test(text)) && !note.test(text)) {
items[i].classList.add('early-exit');
}
}
Comment on lines +86 to +100
Copy link
Copy Markdown
Member

@gibson042 gibson042 Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isACBody will be incorrectly false for deeply-nested steps in an AC (where e.g. the grandparent rather than the parent is the AC header step), but I actually see no benefit in filtering out this annotation from AC bodies anyway. For that matter, I don't think it should be filtered out for top-level returns, either—we can instead just mark all exits, and apply any desired contextual styling via CSS (with selectors like e.g. ol.ac-body li.is-exit for "exit from AC body" or emu-alg > ol > :nth-last-child(1 of li.is-exit) for "final top-level exit").

Suggested change
const acRe = /\ba new Abstract Closure\b/i;
for (const ol of node.querySelectorAll('ol')) {
const isTopLevel = ol.parentElement === node;
const isACBody =
!isTopLevel &&
ol.parentElement?.tagName === 'LI' &&
acRe.test(ownTextContent(ol.parentElement));
const items = ol.children;
for (let i = 0; i < items.length; i++) {
if (i === items.length - 1 && (isTopLevel || isACBody)) continue;
const text = ownTextContent(items[i]);
if ((earlyExitIndicator.test(text) || earlyExitMacro.test(text)) && !note.test(text)) {
items[i].classList.add('early-exit');
}
}
for (const step of node.querySelectorAll('li')) {
const text = ownTextContent(step);
if ((earlyExitIndicator.test(text) || earlyExitMacro.test(text)) && !note.test(text)) {
step.classList.add('is-exit');
}

}

const labeledStepEntries: StepBiblioEntry[] = [];
const replaces = node.getAttribute('replaces-step');
if (replaces) {
Expand Down Expand Up @@ -153,6 +175,17 @@ export default class Algorithm extends Builder {
static readonly elements = ['EMU-ALG'] as const;
}

// get text content of an element excluding nested <ol> children
function ownTextContent(el: Element): string {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on whether #684 lands before this, this function may need to be pulled from the helper in utils.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#684 did land first, and I have a complaint about the ownTextContent name: https://github.com/tc39/ecmarkup/pull/684/changes#r3011694290

let text = '';
for (const child of el.childNodes) {
if (child.nodeType === 3) {
text += child.textContent;
}
}
return text;
}

function getStepNumbers(item: Element) {
const { indexOf } = Array.prototype;
const counts = [];
Expand Down
1 change: 1 addition & 0 deletions src/Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,7 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))}
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>
${this.opts.multipage ? `<li><span>Navigate to/from multipage</span><code>m</code></li>` : ''}
<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/abstract-methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
3 changes: 2 additions & 1 deletion test/baselines/generated-reference/algorithms.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand All @@ -11,7 +12,7 @@
<li><span>Jump to the most recent link target</span><code>`</code></li>
</ul></div><div id="spec-container">

<emu-alg><ol><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in this spec: <emu-xref aoid="Internal" id="_ref_0"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in ES6: <emu-xref aoid="ReturnIfAbrupt"><a href="https://tc39.es/ecma262/#sec-returnifabrupt">ReturnIfAbrupt</a></emu-xref>(<var>completion</var>);</li><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in a biblio file: <emu-xref aoid="Biblio"><a href="http://example.com/fooSite.html#sec-biblio">Biblio</a></emu-xref>();</li><li>Unfound <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> just don't link: Unfound();</li><li>Can prefix with !&nbsp;and ?.<ol><li>Let <var>foo</var> be ?&nbsp;<emu-xref aoid="Internal" id="_ref_1"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Set <var>foo</var> to !&nbsp;<emu-xref aoid="Internal" id="_ref_2"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Set <var>foo</var> to !&nbsp;SDO of <var>operation</var>.</li><li>Set <var>foo</var> to !&nbsp;<var>operation</var>.<var class="field">[[MOP]]</var>().</li></ol></li><li>A <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> looks like this: <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> { <var class="field">[[Key]]</var>: 0&nbsp;}.</li><li>A <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> looks like this: « 0, 1&nbsp;».</li></ol></emu-alg>
<emu-alg><ol><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in this spec: <emu-xref aoid="Internal" id="_ref_0"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in ES6: <emu-xref aoid="ReturnIfAbrupt"><a href="https://tc39.es/ecma262/#sec-returnifabrupt">ReturnIfAbrupt</a></emu-xref>(<var>completion</var>);</li><li>Can call <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> in a biblio file: <emu-xref aoid="Biblio"><a href="http://example.com/fooSite.html#sec-biblio">Biblio</a></emu-xref>();</li><li>Unfound <emu-xref href="#sec-algorithm-conventions-abstract-operations"><a href="https://tc39.es/ecma262/#sec-algorithm-conventions-abstract-operations">abstract operations</a></emu-xref> just don't link: Unfound();</li><li>Can prefix with !&nbsp;and ?.<ol><li class="early-exit">Let <var>foo</var> be ?&nbsp;<emu-xref aoid="Internal" id="_ref_1"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Set <var>foo</var> to !&nbsp;<emu-xref aoid="Internal" id="_ref_2"><a href="#sec-internal">Internal</a></emu-xref>();</li><li>Set <var>foo</var> to !&nbsp;SDO of <var>operation</var>.</li><li>Set <var>foo</var> to !&nbsp;<var>operation</var>.<var class="field">[[MOP]]</var>().</li></ol></li><li>A <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> looks like this: <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">Record</a></emu-xref> { <var class="field">[[Key]]</var>: 0&nbsp;}.</li><li>A <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> looks like this: « 0, 1&nbsp;».</li></ol></emu-alg>

<emu-clause id="sec-internal" aoid="Internal">
<h1><span class="secnum">1</span> Internal Function</h1>
Expand Down
36 changes: 28 additions & 8 deletions test/baselines/generated-reference/assets-inline.html
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,9 @@
location = 'multipage/' + hash;
}
} else if (e.key === 'u') {
document.documentElement.classList.toggle('show-ao-annotations');
document.documentElement.classList.toggle('show-uc-annotations');
} else if (e.key === 'e') {
document.documentElement.classList.toggle('show-early-exits');
} else if (e.key === '?') {
document.getElementById('shortcuts-help').classList.toggle('active');
}
Expand Down Expand Up @@ -1623,7 +1625,7 @@
--link-foreground-color: #206ca7;
--link-hover-foreground-color: #239dee;

--user-code-foreground-color: brown;
--annotation-foreground-color: brown;

--var-foreground-color: #218379;

Expand Down Expand Up @@ -1705,7 +1707,7 @@
--link-foreground-color: #439de2;
--link-hover-foreground-color: #80cafb;

--user-code-foreground-color: brown;
--annotation-foreground-color: brown;

--var-foreground-color: #4fb6ab;

Expand Down Expand Up @@ -1951,9 +1953,9 @@
a.e-user-code::before,
span.e-user-code::before {
display: none;
color: var(--user-code-foreground-color);
color: var(--annotation-foreground-color);
background-color: var(--background-color);
border: 2pt solid var(--user-code-foreground-color);
border: 2pt solid var(--annotation-foreground-color);
padding: 0.3ex;
margin: 0 0.25em 0 0;
line-height: normal;
Expand All @@ -1968,12 +1970,12 @@

a.e-user-code:hover::before,
span.e-user-code:hover::before {
background-color: var(--user-code-foreground-color);
background-color: var(--annotation-foreground-color);
color: var(--background-color);
}

html.show-ao-annotations a.e-user-code::before,
html.show-ao-annotations span.e-user-code::before {
html.show-uc-annotations a.e-user-code::before,
html.show-uc-annotations span.e-user-code::before {
display: inline-block;
}

Expand Down Expand Up @@ -2076,6 +2078,23 @@
font-weight: bold;
}

emu-alg li.early-exit::before {
display: none;
border: 2pt solid var(--annotation-foreground-color);
font-size: small;
color: var(--annotation-foreground-color);
padding: 0 0.25em;
background-color: var(--background-color);
content: '⏎';
margin-right: 0.25em;
line-height: 16px;
vertical-align: middle;
}

html.show-early-exits emu-alg li.early-exit::before {
display: inline-block;
}

/* depth 1 */
emu-alg ol,
/* depth 4 */
Expand Down Expand Up @@ -3975,6 +3994,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/autolinking.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/boilerplate-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/charset-absent.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/charset-present.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/date.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/dfn.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/duplicate-ids.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/ecmarkdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/effect-user-code.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/emd-in-grammar.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
1 change: 1 addition & 0 deletions test/baselines/generated-reference/eqn.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<ul>
<li><span>Toggle shortcuts help</span><code>?</code></li>
<li><span>Toggle "can call user code" annotations</span><code>u</code></li>
<li><span>Toggle early exit annotations</span><code>e</code></li>

<li><span>Jump to search box</span><code>/</code></li>
<li><span>Toggle pinning of the current clause</span><code>p</code></li>
Expand Down
Loading