Skip to content

Commit bf51898

Browse files
authored
update python grammar (fix #74) (#76)
1 parent 25186cd commit bf51898

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## Unreleased
4+
- Updated `python` grammar and highlighting (add support for pattern matching).
45

56
## 0.11.1 - 2022-02-06
67
- Updated `cpp` grammar and highlighting.

queries/python/highlights.scm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@
147147
"try"
148148
"while"
149149
"with"
150-
"yield"] @keyword
150+
"yield"
151+
"match"
152+
"case"] @keyword
151153

152154
;; "Contexts" may have internal highlighting -> low priority.
153155

0 commit comments

Comments
 (0)