Skip to content

Improve Nextflow language support#1344

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

Improve Nextflow language support#1344
kenibrewer wants to merge 1 commit intoXAMPPRocky: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
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.

1 participant