Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -1599,3 +1599,6 @@
[submodule "vendor/grammars/zephir-sublime"]
path = vendor/grammars/zephir-sublime
url = https://github.com/phalcon/zephir-sublime
[submodule "vendor/grammars/blueprint-grammar"]
path = vendor/grammars/blueprint-grammar
url = https://github.com/kaypes/blueprint-grammar.git
2 changes: 2 additions & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ vendor/grammars/bikeshed:
- source.csswg
vendor/grammars/blitzmax:
- source.blitzmax
vendor/grammars/blueprint-grammar:
- source.blueprint
vendor/grammars/boogie-vscode:
- source.boogie
vendor/grammars/bqn-vscode:
Expand Down
9 changes: 9 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,15 @@ BlitzMax:
tm_scope: source.blitzmax
ace_mode: text
language_id: 35
Blueprint:
type: markup
color: "#3584E4"
extensions:
- ".blp"
aliases:
- blp
tm_scope: source.blueprint
language_id: 765545512
Bluespec:
type: programming
color: "#12223c"
Expand Down
57 changes: 57 additions & 0 deletions samples/Blueprint/counter_window.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using Gtk 4.0;
using Adw 1;

template $CounterWindow : Adw.ApplicationWindow {
default-width: 400;
default-height: 400;
width-request: 300;
title: _("Counter Example");

Adw.ToolbarView {

[top]
Adw.HeaderBar {
// Empty HeaderBar, just for window dragging
}

Gtk.Box {
orientation: vertical;
halign: center;
valign: center;
spacing: 48;

Gtk.Frame {
width-request: 220;
height-request: 180;

Gtk.Label counter_label {
use-markup: true;
label: "<span font=\"80\" weight=\"bold\">0 ×</span>";

halign: center;
valign: center;
}
}

Gtk.Box {
orientation: horizontal;
halign: center;
spacing: 16;

Gtk.Button decrement_button {
icon-name: "list-remove-symbolic";
tooltip-text: _("Decrease");
styles ["circular"]
clicked => $on_decrement_clicked();
}

Gtk.Button increment_button {
icon-name: "list-add-symbolic";
tooltip-text: _("Increase");
styles ["circular", "suggested-action"]
clicked => $on_increment_clicked();
}
}
}
}
}
53 changes: 53 additions & 0 deletions samples/Blueprint/sign_in.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
using Gtk 4.0;
using Adw 1;

template $Login : Adw.ApplicationWindow {
default-width: 450;
default-height: 550;
width-request: 360;
title: _("Tabella");

Adw.ToastOverlay toast_overlay {

Adw.ToolbarView {

[top]
Adw.HeaderBar {
// Empty HeaderBar, just for window dragging
}

Adw.StatusPage {
title: _("Welcome Back");
description: _("Sign in to your account");
icon-name: "avatar-default-symbolic";

Adw.Clamp {
maximum-size: 320;

Gtk.Box {
orientation: vertical;
spacing: 24;

Adw.PreferencesGroup {
title: _("Credentials");

Adw.EntryRow username_entry {
title: _("Username");
}

Adw.PasswordEntryRow password_entry {
title: _("Password");
}
}

Gtk.Button login_button {
label: _("Sign In");
styles ["suggested-action", "pill"]
clicked => $on_login_clicked();
}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **Blade:** [jawee/language-blade](https://github.com/jawee/language-blade)
- **BlitzBasic:** [textmate/blitzmax.tmbundle](https://github.com/textmate/blitzmax.tmbundle)
- **BlitzMax:** [textmate/blitzmax.tmbundle](https://github.com/textmate/blitzmax.tmbundle)
- **Blueprint:** [textmate/blueprint.tmbundle](https://github.com/kaypes/blueprint-grammar/)
- **Bluespec:** [thotypous/sublime-bsv](https://github.com/thotypous/sublime-bsv)
- **Bluespec BH:** [B-Lang-org/language-bh](https://github.com/B-Lang-org/language-bh)
- **Boo:** [drslump/sublime-boo](https://github.com/drslump/sublime-boo)
Expand Down
1 change: 1 addition & 0 deletions vendor/grammars/blueprint-grammar
Submodule blueprint-grammar added at 4e3986
31 changes: 31 additions & 0 deletions vendor/licenses/git_submodule/blueprint-grammar.dep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: blueprint
version: 4e398613ab6390c5b0583ab9a9690c53e6b95f61
type: git_submodule
homepage: https://github.com/kaypes/blueprint-grammar
license: MIT
licenses:
- sources: LICENSE
text: |
MIT License

Copyright (c) 2026 Kayque Pereira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
notices: []
Loading