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

Improve it (just small changes are needed) #1

Open
Naereen opened this issue Apr 30, 2018 · 6 comments
Open

Improve it (just small changes are needed) #1

Naereen opened this issue Apr 30, 2018 · 6 comments

Comments

@Naereen
Copy link
Contributor

Naereen commented Apr 30, 2018

Hi!
Thanks for this extension!

Could it be possible to improve it, to support some syntax that are not yet supported?

  • from ... cimport ... the cimport should be colored as import
  • cdef [type] variable cdef should be colored as keyword
  • cdef function same
  • in def/cdef function definitions, types before variable names should be correctly colored: def test(float x, float y) should color flat

Thanks in advance (if you can fix this)

@guyskk
Copy link
Owner

guyskk commented May 3, 2018

Hi, the grammar was just copyed from https://github.com/MagicStack/MagicPython. But I have no time to improve it recently, also sorry for the delayed reply.

@Naereen
Copy link
Contributor Author

Naereen commented May 3, 2018

Hi,
No problem. Do you think we could try to improve it?

@Naereen
Copy link
Contributor Author

Naereen commented May 3, 2018

@Naereen
Copy link
Contributor Author

Naereen commented May 3, 2018

That's very basic, but it's almost enough for me.

@cmpute
Copy link

cmpute commented Dec 14, 2018

There are some keywords need to be highlighted: cppclass, extern, namespace, void, api, public, const. These keywords are all related to interop with C/C++ code. Hope these could be added!~

@cmpute
Copy link

cmpute commented Dec 14, 2018

And also highlighting for C/C++ types are missing: double, short, long, char, struct, unsigned

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

3 participants