Add support for Nextflow (#799)

* Add nextflow

* Add nextflow test

* Add nextflow test data
This commit is contained in:
kojix2 2022-08-14 04:16:23 +09:00 committed by GitHub
parent cd662e912b
commit df545f5820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View file

@ -868,6 +868,12 @@
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["mustache"]
},
"Nextflow": {
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"quotes": [["\\\"", "\\\""]],
"extensions": ["nextflow", "nf"]
},
"Nim": {
"line_comment": ["#"],
"quotes": [["\\\"", "\\\""], ["\\\"\\\"\\\"", "\\\"\\\"\\\""]],

18
tests/data/nextflow.nf Normal file
View file

@ -0,0 +1,18 @@
/* 18 lines 10 code 5 comments 3 blanks */
/*
Nextflow - hello
*/
// comment
cheers = Channel.from 'Bonjour', 'Ciao', 'Hello', 'Hola'
process sayHello {
echo true
input:
val x from cheers
script:
"""
echo '$x world!'
"""
}