Add Blueprint language#8001
Conversation
- Register Blueprint in languages.yml (language_id: 765545512) - Add blueprint-grammar submodule (source.blueprint-gtk) - Add grammars.yml entry - Add 2 sample .blp files - Aliases: blueprint, blp - Extension: .blp - Color: #3584E4 (Adwaita default)
lildude
left a comment
There was a problem hiding this comment.
We cannot accept the grammar you are proposing due to it's license. We can only accept grammars with one of these licenses as called out in the CONTRIBUTING.md file.
Swapped the LGPL grammar for a new custom MIT one.
Updated languages.yml to match the cleaner scope of the new custom grammar.
kaypes
left a comment
There was a problem hiding this comment.
I wrote a brand new grammar under the MIT license to fix the issue
lildude
left a comment
There was a problem hiding this comment.
Looks like you didn't use the script/add-grammar to replace the grammar as the test failure illustrates and my previous comment.
Please do so. You can find details for replacing a grammar in the CONTRIBUTING.md file… you can replace a grammar with itself.
No longer relevant, please ignore.@kaypes I've fixed your pull-request locally, but you need to give me write access to your Linguist fork: λ GitHub-Linguist (blueprint): git push -u fork
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 16 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (16/16), 1.47 KiB | 1.47 MiB/s, done.
Total 16 (delta 10), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (10/10), completed with 7 local objects.
To github.com:kaypes/linguist.git
! [remote rejected] blueprint -> blueprint (permission denied)
error: failed to push some refs to 'github.com:kaypes/linguist.git'The issue appeared to be with your submodule's version history. The commits it was referencing didn't exist (I'm guessing you must've force-pushed to EDIT: Whoops, never mind. It was a misconfigured remote on my part. I've pushed the fixes to your branch. |
Adds Blueprint (.blp) as a markup language - the descriptive user interface language for GTK4 and Libadwaita.
Description
Blueprint is a markup language designed for building GTK user interfaces. Created to replace verbose XML
.uifiles with a clean and human-readable syntax, it is heavily used by modern Linux app developers in the GNOME ecosystem. Despite its widespread adoption and support in tools like GNOME Builder and Workbench, it currently lacks language recognition and syntax highlighting on GitHub.source.blueprint#3584E4(Adwaita default)Checklist:
#3584E4.blpis not used by any other language in Linguist.