Skip to content

Commit

Permalink
feat(highlights): add const keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
b0o committed Oct 17, 2024
1 parent 127d43e commit 30ba598
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,5 @@
"property"
"namespace"
"cppclass"
"const"
] @keyword
9 changes: 5 additions & 4 deletions test/highlight/cython.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@ cdef extern from "list.h" namespace " ::list":
cppclass Builder:
# <- keyword
# ^ constructor
T operator[](uint) except +reraise_exception
T operator[](const uint) except +reraise_exception
# <- type
# ^ keyword
# ^ operator
# ^ variable
# ^ keyword
# ^ keyword
# ^ operator
# ^ variable
uint size()
# <- type

0 comments on commit 30ba598

Please sign in to comment.