fix: pattern uses goto (Lua 5.1 incompatible) and wrong filesystem capability #72

Closed
opened 2026-05-25 20:06:39 +02:00 by michael · 0 comments
Owner

Problems

  1. Critical: goto continue is used in skip_comments logic.
    goto is not supported in Lua 5.1 -- only available from Lua 5.2+.
    Calling check() with skip_comments=true will fail on Lua 5.1.

    Fix: replace with local function or nested if.

  2. capabilities.filesystem = "read" but content is passed via
    target.content -- filesystem is never accessed directly.
    Should be "none". See DAW/fragjan#71 (same issue in linecount).

See also

## Problems 1. Critical: `goto continue` is used in skip_comments logic. goto is not supported in Lua 5.1 -- only available from Lua 5.2+. Calling check() with skip_comments=true will fail on Lua 5.1. Fix: replace with local function or nested if. 2. capabilities.filesystem = "read" but content is passed via target.content -- filesystem is never accessed directly. Should be "none". See DAW/fragjan#71 (same issue in linecount). ## See also - DAW/fragjan#71
michael added this to the Basic Version milestone 2026-05-30 16:04:44 +02:00
Sign in to join this conversation.
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
DAW/fragjan#72
No description provided.