mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Remove @ directives
I liked how they made keywords stand out, but they're kinda ugly and I think syntax highlighting will do a better job anyway.
This commit is contained in:
parent
b553fc357c
commit
572db893d9
3 changed files with 8 additions and 17 deletions
|
@ -330,15 +330,6 @@ class Optional(ParseNode):
|
|||
return True
|
||||
|
||||
|
||||
class Directive(ParseNode):
|
||||
""" ParseNode that matches a directive with the given name. """
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def _parse(self, ctx: ParseContext):
|
||||
return ctx.next_token().is_directive(self.name)
|
||||
|
||||
|
||||
class StaticToken(ParseNode):
|
||||
""" Base class for ParseNodes that match a token type without inspecting
|
||||
the token's contents. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue