diff --git a/README.md b/README.md index f9dff03c..a63cfad5 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Introduction - `.cvsignore` (Cvs) - `.boringignore` (Darcs) - `.deployignore` (DeployHQ) +- `.distignore` (WP-CLI) - `.dockerignore` (Docker) - `.ebignore` (ElasticBeanstalk) - `.eleventyignore` (Eleventy) diff --git a/src/main/kotlin/mobi/hsz/idea/gitignore/lang/kind/WpCliLanguage.kt b/src/main/kotlin/mobi/hsz/idea/gitignore/lang/kind/WpCliLanguage.kt new file mode 100644 index 00000000..ac5271f5 --- /dev/null +++ b/src/main/kotlin/mobi/hsz/idea/gitignore/lang/kind/WpCliLanguage.kt @@ -0,0 +1,19 @@ +// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +package mobi.hsz.idea.gitignore.lang.kind + +import mobi.hsz.idea.gitignore.file.type.kind.WpCliFileType +import mobi.hsz.idea.gitignore.lang.IgnoreLanguage +import mobi.hsz.idea.gitignore.util.Icons + +/** + * WP-CLI [IgnoreLanguage] definition. + */ +class WpCliLanguage private constructor() : IgnoreLanguage("WP-CLI", "distignore", null, Icons.GCLOUD) { + + companion object { + val INSTANCE = WpCliLanguage() + } + + override val fileType + get() = WpCliFileType.INSTANCE +} diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 479473e0..f2411583 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -833,6 +833,30 @@ implementationClass="mobi.hsz.idea.gitignore.highlighter.IgnoreHighlighterFactory"/> + + + + + + + + +