mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Support C class names that ignore GIR
By writing `.MyAppComponent` instead of `MyApp.Component`, the compiler will ignore GIR validation for that class and assume it's application-defined.
This commit is contained in:
parent
8ef65196f3
commit
b387d4114f
3 changed files with 20 additions and 16 deletions
|
@ -53,6 +53,11 @@ def parse(tokens) -> ast.UI:
|
|||
Op("."),
|
||||
UseIdent("class_name"),
|
||||
),
|
||||
Sequence(
|
||||
Op("."),
|
||||
UseIdent("class_name"),
|
||||
UseLiteral("ignore_gir", True),
|
||||
),
|
||||
UseIdent("class_name"),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue