Skip to content

Commit

Permalink
Add support for Jenkinsfile syntax (#2750)
Browse files Browse the repository at this point in the history
Build pipelines for the Jenkins build system are configured in Groovy,
however since their filename is always `Jenkinsfile`, micro doesn't
recognize them as Groovy, and doesn't add syntax highlighting.

This small commit simply adds `Jenkinsfile` and `jenkinsfile` as file
names recognized as Groovy.
  • Loading branch information
mathialo authored Jul 8, 2023
1 parent b02afb1 commit 0c28fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/syntax/groovy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
filetype: groovy

detect:
filename: "\\.(groovy|gy|gvy|gsh|gradle)$"
filename: "(\\.(groovy|gy|gvy|gsh|gradle)$|^[Jj]enkinsfile$)"
header: "^#!.*/(env +)?groovy *$"

rules:
Expand Down

0 comments on commit 0c28fbf

Please sign in to comment.