diff options
Diffstat (limited to 'tests/query/highlights/python/pattern_matching.py')
| -rw-r--r-- | tests/query/highlights/python/pattern_matching.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/query/highlights/python/pattern_matching.py b/tests/query/highlights/python/pattern_matching.py index cd359a48f..2762781b0 100644 --- a/tests/query/highlights/python/pattern_matching.py +++ b/tests/query/highlights/python/pattern_matching.py @@ -1,29 +1,29 @@ match command.split(): -# ^ @conditional +# ^ @keyword.conditional case ["quit"]: - # ^ @conditional + # ^ @keyword.conditional print("Goodbye!") quit_game() case ["look"]: - # ^ @conditional + # ^ @keyword.conditional current_room.describe() case ["get", obj]: - # ^ @conditional + # ^ @keyword.conditional character.get(obj, current_room) case ["go", direction]: - # ^ @conditional + # ^ @keyword.conditional current_room = current_room.neighbor(direction) # The rest of your commands go here match command.split(): -# ^ @conditional +# ^ @keyword.conditional case ["drop", *objects]: - # ^ @conditional + # ^ @keyword.conditional for obj in objects: character.drop(obj, current_room) match command.split(): -# ^ @conditional +# ^ @keyword.conditional case ["quit"]: ... # Code omitted for brevity case ["go", direction]: pass case ["drop", *objects]: pass @@ -32,12 +32,12 @@ match command.split(): # ^^ @@function.macro match command.split(): -# ^ @conditional +# ^ @keyword.conditional case ["north"] | ["go", "north"]: - # ^ @conditional + # ^ @keyword.conditional current_room = current_room.neighbor("north") case ["get", obj] | ["pick", "up", obj] | ["pick", obj, "up"]: - # ^ @conditional + # ^ @keyword.conditional pass match = 2 |
