input.tag field #3

Closed
opened 2026-01-28 17:37:19 +01:00 by xamgore · 1 comment
xamgore commented 2026-01-28 17:37:19 +01:00 (Migrated from github.com)

Hi! On the line tokens.js#L199 there is input.tag field. Could you please help me to understand, where is it defined?

function readAnchor(input) {
  input.advance()
  while (!isSep(input.next) && charTag(input.tag) != "f") input.advance()
}
Hi! On the line [tokens.js#L199](https://github.com/lezer-parser/yaml/blob/891a250f43a01ed86467d07e0b52843d80606f63/src/tokens.js#L199) there is `input.tag` field. Could you please help me to understand, where is it defined? ```js function readAnchor(input) { input.advance() while (!isSep(input.next) && charTag(input.tag) != "f") input.advance() } ```
marijnh commented 2026-01-29 08:00:59 +01:00 (Migrated from github.com)

It is defined nowhere, so it appears that was a typo. Attached patch fixes it.

It is defined nowhere, so it appears that was a typo. Attached patch fixes it.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/yaml#3
No description provided.