mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Change extern type syntax
Use a '$' instead of a '.' to indicate a type provided in application code. The reason for the change is to have a consistent "extern" symbol that isn't widely used elsewhere and isn't ambiguous in expressions.
This commit is contained in:
parent
be284de879
commit
0b402db4d5
11 changed files with 41 additions and 13 deletions
|
@ -124,6 +124,11 @@ class CompileWarning(CompileError):
|
|||
color = Colors.YELLOW
|
||||
|
||||
|
||||
class UpgradeWarning(CompileWarning):
|
||||
category = "upgrade"
|
||||
color = Colors.PURPLE
|
||||
|
||||
|
||||
class UnexpectedTokenError(CompileError):
|
||||
def __init__(self, start, end):
|
||||
super().__init__("Unexpected tokens", start, end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue