Skip to content

Commit

Permalink
Make "column" definition a partial sentence (#160)
Browse files Browse the repository at this point in the history
SHA: 339f258
Reason: push, by nicolo-ribaudo

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
nicolo-ribaudo and github-actions[bot] committed Dec 6, 2024
1 parent 079fa73 commit de1cc24
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@
</style>
<meta content="Bikeshed version 742f3d674, updated Mon Nov 4 14:56:54 2024 -0800" name="generator">
<link href="https://tc39.es/source-map/" rel="canonical">
<meta content="174c02d96956a403e556bb13b12196e8bba108d1" name="revision">
<meta content="339f2581e4106f544753d6480a829a97f8514573" name="revision">
<meta content="dark light" name="color-scheme">
<style>
/* match list styles of ecmarkup */
Expand Down Expand Up @@ -2182,7 +2182,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Source Map Format Specification</h1>
<h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span class="content">Stage 0: Strawman, <time class="dt-updated" datetime="2024-12-05">5 December 2024</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="profile-and-date"><span class="content">Stage 0: Strawman, <time class="dt-updated" datetime="2024-12-06">6 December 2024</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -2387,10 +2387,10 @@ <h2 class="heading settled" data-level="4" id="terminology"><span class="secno">
<dl>
<dt data-md><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="generated-code">Generated Code</dfn>
<dd data-md>
<p>The code which is generated by the compiler or transpiler.</p>
<p>code which is generated by the compiler or transpiler.</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="original-source">Original Source</dfn>
<dd data-md>
<p>The source code which has not been passed through the compiler.</p>
<p>source code which has not been passed through the compiler.</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="base64-vlq">Base64 VLQ</dfn> <a data-link-type="biblio" href="#biblio-vlq" title="Variable-length quantity">[VLQ]</a>
<dd data-md>
<p>A <a data-link-type="biblio" href="#biblio-base64" title="The Base16, Base32, and Base64 Data Encodings">[base64]</a> value, where the most significant bit (the 6th bit) is used as the continuation bit,
Expand All @@ -2409,16 +2409,15 @@ <h2 class="heading settled" data-level="4" id="terminology"><span class="secno">
The decoding of this VLQ string is the number -10. </div>
<dt data-md><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="source-mapping-url">Source Mapping URL</dfn>
<dd data-md>
<p>The URL referencing the location of a source map from the <a data-link-type="dfn" href="#generated-code" id="ref-for-generated-code">Generated code</a>.</p>
<p>URL referencing the location of a source map from the <a data-link-type="dfn" href="#generated-code" id="ref-for-generated-code">Generated code</a>.</p>
<dt data-md><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="column">Column</dfn>
<dd data-md>
<p>The zero-based indexed offset within a line of the generated code. How this offset is
measured can depend on the content type. For JavaScript and CSS based source
maps, they are defined to be in UTF-16 code units analogous to JavaScript string indices. That means
that "A" (<code class="highlight">LATIN CAPITAL LETTER A</code>) measures as 1 code unit, and "🔥" (<code class="highlight">FIRE</code>) measures as 2 code
units. For WebAssembly, columns are defined as byte offsets from the beginning of the binary
content (and there is only one group representing a line). Source maps for other content types
may diverge from this.</p>
<p>zero-based indexed offset within a line of the generated code, computed as
UTF-16 code units for JavaScript and CSS source maps, and as byte indexes in
the binary content (represented as a single line) for WebAssembly source maps.</p>
<p class="note" role="note"><span class="marker">Note:</span> That means that "A" (<code class="highlight">LATIN CAPITAL LETTER A</code>) measures as 1 code unit,
and "🔥" (<code class="highlight">FIRE</code>) measures as 2 code units. Source maps for other content types
may diverge from this.</p>
</dl>
<h2 class="heading settled" data-level="5" id="source-map-format"><span class="secno">5. </span><span class="content">Source Map Format</span><a class="self-link" href="#source-map-format"></a></h2>
<p>A source map is a JSON document containing a top-level JSON object with the
Expand Down

0 comments on commit de1cc24

Please sign in to comment.