Add support for Jenkinsfile syntax (#2750)

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.
This commit is contained in:
Mathias Lohne
2023-07-08 23:08:34 +02:00
committed by GitHub
parent b02afb1116
commit 0c28fbf7a5

View File

@@ -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: