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:
James Westman 2021-10-22 21:57:37 -05:00
parent b553fc357c
commit 572db893d9
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
3 changed files with 8 additions and 17 deletions

View file

@ -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. """