Skip to content

Commit

Permalink
feat: cppclass highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
b0o committed Oct 16, 2024
1 parent 1612964 commit 127d43e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,5 @@
"fused"
"property"
"namespace"
"cppclass"
] @keyword
33 changes: 33 additions & 0 deletions test/highlight/cython.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,36 @@ cdef class MyClass:
# ^ property



cdef extern from "list.h" namespace " ::list":
# <- keyword
# ^ keyword
# ^ keyword
# ^ string
# ^ keyword
# ^ string
cdef cppclass List[T]:
# <- keyword
# ^ keyword
# ^ constructor
# ^ constant
cppclass Reader:
# <- keyword
# ^ constructor
T operator[](uint) except +reraise_exception
# <- type
# ^ keyword
# ^ operator
# ^ variable
uint size()
# <- type
cppclass Builder:
# <- keyword
# ^ constructor
T operator[](uint) except +reraise_exception
# <- type
# ^ keyword
# ^ operator
# ^ variable
uint size()
# <- type

0 comments on commit 127d43e

Please sign in to comment.