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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: