aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/3rdparty/syntax-highlighting/src/lib/repository.h')
-rw-r--r--src/libs/3rdparty/syntax-highlighting/src/lib/repository.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h b/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h
index c35da5ec37..e4e9bed69f 100644
--- a/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h
+++ b/src/libs/3rdparty/syntax-highlighting/src/lib/repository.h
@@ -167,6 +167,13 @@ public:
Definition definitionForFileName(const QString &fileName) const;
/**
+ * Returns all Definition%s for the file named @p fileName.
+ * The match is performed based on the \e extensions and @e mimetype of
+ * the definition files.
+ */
+ QVector<Definition> definitionsForFileName(const QString &fileName) const;
+
+ /**
* Returns the best matching Definition to the type named @p mimeType
*
* If no match is found, Definition::isValid() of the returned instance
@@ -177,6 +184,11 @@ public:
Definition definitionForMimeType(const QString &mimeType) const;
/**
+ * Returns all Definition%s to the type named @p mimeType
+ */
+ QVector<Definition> definitionsForMimeType(const QString &mimeType) const;
+
+ /**
* Returns all available Definition%s.
* Definition%ss are ordered by translated section and translated names,
* for consistent displaying.