{{ message }}
Add language support for pkg-config#7991
Merged
Merged
Conversation
Since the samples database is generated using the pathname of the sample file's directory, the array of languages passed to `Classifier.classify` needs to use the filesystem-safe version of a language's name.
Member
Contributor
|
hilarious colour justification lol. |
Contributor
|
@havocp if you had to pick a colour to represent pkg-config what would it be |
Not a question I have ever considered 😀 probably not forehead color! |
Collaborator
Author
lildude
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull-request adds language support for
pkg-configmanifests.Description
pkg-config(and its successor,pkgconf) are build utilities for managing project dependencies, compiler options, and other auxiliary information pertaining to installed software libraries. The file format these tools use is well-established and typically installed to directories like /usr/local/share/pkgconfig/.The
.pcfilename suffix is also used by a number of other filetypes whose usage satisfies Linguist's popularity criteria:.pcas its file extension.Checklist
.pc: ~251k search results.pc.in: ~31.1 search resultsmakefile.pc: 196 filesREADME.pc: 324 filesdbFuncs.pc: Source | MITluajit.pc: Source | MITmakefile.pc: Source | BSD 2-ClauseREADME.pc: Source | GPL-3.0yaws.pc.in: Source | BSD 3-Clauseincludedupdated a syntax highlighting grammar:Alhadis/language-etcwas bumped to1137dbcpkg-config:#75b5aa#2b5e82This was selected at random, as neither the
UPDATE: As per @Nixinova's suggestion, I've changed it to the colour used by FreeDesktop.org's logo.pkg-confignorpkgconfprojects have dedicated logos or branding from which to source a colour.#bb8368This was sampled from Larry Ellison's forehead:
pkg-config: Manifests are required to includeName:,Description:andVersion:fields1 (albeit not necessarily in that order).EXEC SQL.2Footnotes
https://github.com/pkgconf/pkgconf/blob/32152be3498f0d9c38dec63ab11a7ae59726db90/man/pc.5#L82-L90 ↩
https://docs.oracle.com/cd/E11882_01/appdev.112/e10825/pc_02prc.htm#i10149 ↩