From c9043f866cfa83b830c7b2ae70e5eff6cc6edfa0 Mon Sep 17 00:00:00 2001 From: Christopher Hakkaart Date: Wed, 9 Oct 2024 13:28:10 +0200 Subject: [PATCH] Revert "Suggestions for syntax page" This reverts commit 597e06e410a79c20881936ecf7e994b382464de5. --- docs/reference/syntax.md | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/docs/reference/syntax.md b/docs/reference/syntax.md index 7a25659699..0bf29acadb 100644 --- a/docs/reference/syntax.md +++ b/docs/reference/syntax.md @@ -73,24 +73,13 @@ nextflow.preview.topic = true An include declaration consists of an *include source* and one or more *include clauses*: -The include source should be a string literal and should refer to either a local path (e.g. `./module.nf`) or a plugin (e.g. `plugin/nf-hello`): - -```groovy -include { foo } from './some/module' -``` - -Each include clause should specify a name, and may also specify an *alias*: - ```groovy -include { bar as baz } from './some/module' +include { foo ; bar as baz } from './some/module' ``` -Include clauses may include multiple names: +The include source should be a string literal and should refer to either a local path (e.g. `./module.nf`) or a plugin (e.g. `plugin/nf-hello`). -```groovy -// together -include { foo ; bar as baz } from './some/module' -``` +Each include clause should specify a name, and may also specify an *alias*. In the example above, `bar` is included under the alias `baz`. Include clauses can be separated by newlines or semi-colons, or they can be specified as separate includes: