Skip to content

Commit

Permalink
Merge pull request #19 from jemunro/channel-factory-methods
Browse files Browse the repository at this point in the history
add channel factory methods
  • Loading branch information
pditommaso authored Dec 6, 2022
2 parents 7c6bb7c + 7eeb9be commit 5c5e1b7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions syntaxes/nextflow.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,27 @@
"name": "entity.name.function.nextflow",
"match": "(?<=[\\s\\.])(branch|buffer|close|collate|collect|collectFile|combine|concat|count|countBy|cross|distinct|dump|filter|first|flatMap|flatten|groupTuple|ifEmpty|join|last|map|max|merge|min|mix|multiMap|randomSample|reduce|set|splitCsv|splitFasta|splitFastq|splitText|sum|take|tap|toInteger|toList|toSortedList|transpose|unique|until|view)(?=[{\\(\\s])"
},
{
"comment": "Channel factory single line",
"match": "\\b((?:C|c)hannel\\.)((fromList|fromPath|fromFilePairs|fromSRA|from|of|empty|value|watchPath)\\W)?",
"captures": {
"1": {"name": "keyword.nextflow"},
"2": {"name": "entity.name.function.nextflow"}
}
},
{
"comment": "Channel factory multi-line",
"begin": "\\b((?:C|c)hannel)\\s*$",
"beginCaptures": {
"1": {"name": "keyword.nextflow"}
},
"end": "(^\\s*)(?:(\\.)(fromList|fromPath|fromFilePairs|fromSRA|from|of|empty|value|watchPath)\\W)?",
"endCaptures": {
"1": {"name": "keyword.nextflow"},
"2": {"name": "keyword.nextflow"},
"3": {"name": "entity.name.function.nextflow"}
}
},
{
"comment": "method call and parens",
"begin": "(\\w*\\()",
Expand Down

0 comments on commit 5c5e1b7

Please sign in to comment.