Skip to content

Recognition: upstream Flow lexer to Pygments #900

Closed as not planned
Closed as not planned

Description

@godofecht

PR #898 adds an installable flow-pygments plugin with synthetic and real-source smoke tests.

Pygments' current contribution guide says proposed languages should have a reasonably sized community and explicitly recommends using a plugin for a brand-new language until it gains enough popularity. So the local plugin is the correct current distribution mechanism; do not upstream prematurely.

Completion criteria: keep the plugin green over representative Flow source; publish/distribute it wherever useful; once Flow has a reasonably sized external community, translate the lexer into the current Pygments repository layout, add the required example file or test snippet, run the upstream test suite with tox, open the Pygments PR, and track merge/release.

Activity

  1. godofecht commented on Oct 2, 2026

    @godofecht
    ContributorAuthor

    Local plugin verified working: third_party/integrations/pygments-flow loads as FlowLexer and test_lexer.py passes (no Error tokens on synthetic plus hello_world/gcd/pendulum real sources). Per the issue and Pygments' own guidance, upstreaming waits on community adoption; the installable plugin is the current distribution mechanism. Nothing further needed in-repo right now.

  2. godofecht commented on Oct 6, 2026

    @godofecht
    ContributorAuthor

    Backlog triage (2026-10-06): closing not planned for the current release cycle, not as upstreamed. The installable Pygments plugin and corpus tests already exist (merged #1286), but Pygments upstream acceptance/public release is not evidenced and the documented community-size condition remains outstanding. The plugin and reopening trigger remain in docs/project/ecosystem-recognition.md. Reopen when external adoption supports a proper upstream contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions