Skip to content

Commit

Permalink
feat: Add retries keyword (#31)
Browse files Browse the repository at this point in the history
* chore: Sort values alphabetically in keywords-regex.json

* fix

* feat: add `retries` keyword, so it syntax highlights
  • Loading branch information
corneliusroemer authored Oct 20, 2024
1 parent 7ba2658 commit ea88750
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/js/keywords-regex.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configs": "configfile|include|localrules|onerror|onstart|onsuccess|ruleorder|snakefile|workdir|container|containerized|pepfile|pepschema",
"configs": "configfile|container|containerized|include|localrules|onerror|onstart|onsuccess|pepfile|pepschema|ruleorder|snakefile|workdir",
"rules": "checkpoint|rule|subworkflow",
"ruleparams": "benchmark|conda|cwl|group|input|log|message|notebook|output|params|priority|resources|run|script|shadow|shell|singularity|threads|version|wildcard_constraints|wrapper|default_target|template_engine|handover|container|containerized",
"functions": "ancient|directory|expand|pipe|protected|temp|touch|unpack|report"
}
"ruleparams": "benchmark|conda|container|containerized|cwl|default_target|group|handover|input|log|message|notebook|output|params|priority|resources|retries|run|script|shadow|shell|singularity|template_engine|threads|version|wildcard_constraints|wrapper",
"functions": "ancient|directory|expand|pipe|protected|report|temp|touch|unpack"
}
1 change: 1 addition & 0 deletions src/keywords.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ruleparams:
- params
- priority
- resources
- retries
- run
- script
- shadow
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/snakemake.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
},
"ruleparams": {
"match": "(?x)\n ^\\s* # Leading whitespace\n (benchmark|conda|cwl|group|input|log|message|notebook|output|params|priority|resources|run|script|shadow|shell|singularity|threads|version|wildcard_constraints|wrapper|default_target|template_engine|handover) # Keywords\n : # Ending in colon\n",
"match": "(?x)\n ^\\s* # Leading whitespace\n (benchmark|conda|cwl|group|input|log|message|notebook|output|params|priority|resources|retries|run|script|shadow|shell|singularity|threads|version|wildcard_constraints|wrapper|default_target|template_engine|handover) # Keywords\n : # Ending in colon\n",
"captures": {
"1": {
"name": "keyword.control.snakemake.ruleparam"
Expand Down

0 comments on commit ea88750

Please sign in to comment.