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

Commit fb5e912

Browse files
committed
match newer grammar naming
1 parent e8ab10c commit fb5e912

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/snippet-body-old.pegjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ tabStopWithoutPlaceholder = '${' index:[0-9]+ '}' {
3737
tabStopWithPlaceholder = '${' index:[0-9]+ ':' content:placeholderContent '}' {
3838
return { index: parseInt(index.join("")), content: content };
3939
}
40-
tabStopWithTransformation = '${' index:[0-9]+ substitution:transformationSubstitution '}' {
40+
tabStopWithTransformation = '${' index:[0-9]+ transformation:transformationSubstitution '}' {
4141
return {
4242
index: parseInt(index.join(""), 10),
4343
content: [],
44-
substitution: substitution
44+
transformation,
4545
};
4646
}
4747

@@ -71,12 +71,12 @@ transformationSubstitution = '/' find:(escapedForwardSlash / [^/])* '/' replace:
7171
formatString = content:(formatStringEscape / formatStringReference / escapedForwardSlash / [^/])+ {
7272
return content;
7373
}
74-
// Backreferencing a substitution. Different from a tab stop.
74+
// Backreferencing a transformation capture group. Different from a tab stop.
7575
formatStringReference = '$' digits:[0-9]+ {
7676
return { backreference: parseInt(digits.join(''), 10) };
7777
};
7878
// One of the special control flags in a format string for case folding and
7979
// other tasks.
8080
formatStringEscape = '\\' flag:[ULulErn$] {
81-
return { escape: flag };
81+
return { modifier: flag };
8282
}

0 commit comments

Comments
 (0)