language-cython-for-vscode icon indicating copy to clipboard operation
language-cython-for-vscode copied to clipboard

Types highlighting support

Open cmpute opened this issue 6 years ago • 2 comments

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>, ...)

cmpute avatar Dec 14 '18 03:12 cmpute

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.

guyskk avatar Dec 14 '18 13:12 guyskk

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

cmpute avatar Dec 14 '18 15:12 cmpute