Skip to content

Improve Nextflow language support#1344

Open
kenibrewer wants to merge 1 commit into
XAMPPRocky:masterfrom
kenibrewer:Ken-Brewer/add-nextflow-support
Open

Improve Nextflow language support#1344
kenibrewer wants to merge 1 commit into
XAMPPRocky:masterfrom
kenibrewer:Ken-Brewer/add-nextflow-support

Conversation

@kenibrewer

Copy link
Copy Markdown

Summary

  • Add triple-double ("""), triple-single ('''), and single (') quote support to the Nextflow language definition — fixes miscounting of comment-like content inside process script blocks
  • Add nextflow.config as a recognized filename
  • Remove unused nextflow extension (Nextflow files use .nf)
  • Rewrite test file as a realistic DSL2 pipeline exercising all quote/comment variants

Test plan

  • cargo test nextflow — passes with 42 lines, 28 code, 5 comments, 9 blanks
  • cargo test — all 206 accuracy tests pass, no regressions
  • cargo run -- --languages | grep -i nextflow — Nextflow listed with .nf extension
  • cargo run -- tests/data/nextflow.nf — correct counts displayed

🤖 Generated with Claude Code

Add triple-double, triple-single, and single quote support to the
Nextflow language definition. This fixes miscounting of comment-like
content inside process script blocks (e.g. """...""" heredocs).

Also adds nextflow.config as a recognized filename and removes the
unused "nextflow" extension (Nextflow files use .nf).

Rewrites the test file as a DSL2 pipeline exercising all quote and
comment variants.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kenibrewer
kenibrewer force-pushed the Ken-Brewer/add-nextflow-support branch from 9fb34ad to fc52de4 Compare March 27, 2026 22:07
Migelo added a commit to Migelo/tokei that referenced this pull request Jun 23, 2026
Port of upstream XAMPPRocky#1344. Adds triple/single-quote string
handling and nextflow.config filename; drops the rare .nextflow extension.

Co-Authored-By: Ken Brewer <kenibrewer@users.noreply.github.com>
@Migelo

Migelo commented Jun 26, 2026

Copy link
Copy Markdown

Hi, thanks for this contribution. Your changes have been implemented in Migelo/tokei, an actively maintained fork of tokei, and are included in the latest release. You can download prebuilt binaries here: https://github.com/Migelo/tokei/releases/tag/v14.2.0

To be clear, this fork is not an attempt to usurp or replace the original maintainer. It just aims to keep things moving and ship contributions like yours. Thanks again for your work.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants