Add language support for GTK 2.0 configs (GtkRC) by Alhadis · Pull Request #8004 · github-linguist/linguist · GitHub
Skip to content

Add language support for GTK 2.0 configs (GtkRC)#8004

Merged
lildude merged 3 commits into
mainfrom
gtkrc
Jun 8, 2026
Merged

Add language support for GTK 2.0 configs (GtkRC)#8004
lildude merged 3 commits into
mainfrom
gtkrc

Conversation

@Alhadis

@Alhadis Alhadis commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Description

This pull-request adds language support for the legacy GtkRC theming language, which was used to configure colours, styling, widget behaviour, and user keyboard bindings in GTK environments. Though the GtkRC format was deprecated in GTK-3 in favour of CSS, there are still countless gtkrc files either being used for compatibility reasons, or lingering around in older codebases (of which you'll find many).

Note that I've appropriated CodeMirror and ACE's Ruby-editing modes because they both do a decent job of highlighting GtkRC source:

Checklist

@Alhadis Alhadis requested a review from a team as a code owner June 4, 2026 22:35
@Alhadis Alhadis requested a review from lildude June 4, 2026 22:36
@Alhadis

Alhadis commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

@Alhadis Alhadis mentioned this pull request Jun 5, 2026
6 tasks
@spenserblack

Copy link
Copy Markdown
Contributor

gtkrc-* would've made a good candidate for the yet-to-exist prefix strategy (note how many unclassified files start with the gtkrc- stem).

I was assuming that the prefixes would specifically be "the part before the ." (probably because of Rust's path library), but prefixes will be used for a .starts_with?(prefix)? Nice, that will be very useful!

@Alhadis

Alhadis commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

@lildude lildude left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

samples/GtkRC/filenames/gtkrc is hoog.

@lildude lildude enabled auto-merge June 8, 2026 09:51
@lildude lildude added this pull request to the merge queue Jun 8, 2026
Merged via the queue into main with commit 5bd7b84 Jun 8, 2026
9 checks passed
@lildude lildude deleted the gtkrc branch June 8, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants