Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 0880ec4

Browse files
committed
tweak
1 parent 8b67413 commit 0880ec4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/snippet-body.pegjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ be a significant gain to hand write a parser (and remove the PEG.js dependency).
4040
*/
4141

4242
{
43+
// Joins all consecutive strings in a collection without clobbering any
44+
// non-string members.
4345
function coalesce (parts) {
4446
const result = [];
4547
for (let i = 0; i < parts.length; i++) {
@@ -73,7 +75,7 @@ tabStopWithoutPlaceholder = '{' n:integer '}' { return { index: n }; }
7375
// When a ':' follows `n`, the content after the ':' is the placeholder and it can be anything
7476
tabStopWithPlaceholder = '{' n:integer ':' content:tabStopContent '}' { return { index: n, content }; }
7577

76-
// When a transform follows `n` (indicated by '${n:/...')
78+
// When a transform follows `n` (indicated by '${n/...')
7779
tabStopWithTransform = '{' n:integer t:transformation '}' { return { index: n, transformation: t }; }
7880

7981
// Builds a capture regex and substitution tree. If the capture is not a valid regex, then the match fails

0 commit comments

Comments
 (0)