Skip to content

Commit c20b1da

Browse files
committed
doc: comment the token scanner object where it appears
1 parent a47d9a5 commit c20b1da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/expression/function/parse.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ export const createParse = /* #__PURE__ */ factory(name, dependencies, ({
169169
}
170170

171171
// token types enumeration
172+
// Each key is a token type, and the corresponding value
173+
// is a scanner function that looks for that token in the current state,
174+
// and consumes it into state.token and returns true if it is there,
175+
// and returns false if it is not there. The scanners are called in the
176+
// order they appear in the object.
172177
parse.tokens = {
173178
SKIP_IGNORED: state => {
174179
while (true) {

0 commit comments

Comments
 (0)