Skip to content

Commit dba0bf2

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

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
@@ -168,6 +168,11 @@ export const createParse = /* #__PURE__ */ factory(name, dependencies, ({
168168
}
169169

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

0 commit comments

Comments
 (0)