Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types highlighting support #5

Open
cmpute opened this issue Dec 14, 2018 · 2 comments
Open

Types highlighting support #5

cmpute opened this issue Dec 14, 2018 · 2 comments

Comments

@cmpute
Copy link

cmpute commented Dec 14, 2018

Hope that the type name can be highlighted like in C++. This might be quite different from python highlighting since this requires to detect type names. For example the types in following statement:

cdef <typename> <obj>
cdef cppclass <typename>[<template>]
cdef struct <typename>
def/cdef/cpdef <return type> <function>(<arg type1> <arg name1>, <arg type2> <arg name2>, ...)
@guyskk
Copy link
Owner

guyskk commented Dec 14, 2018

Do you means user defined type name? if yes then it's hard to support.
otherwise we can treat them as keywords and it's easy, you can search keywords like print in tmLanguage file and append type names to it.

@cmpute
Copy link
Author

cmpute commented Dec 14, 2018

@guyskk Yes, I mean user defined type. It may need some semantic analysis :[

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants