You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.
Looks like GitHub's syntax highlighter correctly picks it up (except namespace) :)
The text was updated successfully, but these errors were encountered:
aldanor
changed the title
packed, cppclass, namespace are keywords (in some contexts)
packed, cppclass, fused, namespace are keywords (in some contexts)
Jul 16, 2014
@aldanor can you help me collecting all the valid cpp keywords/statements/types/etc which needed to be highlighted in cython? like for example: I found that the new statement is also valid in cython:
Alright, here's the list of Cython keywords and builtins that don't get highlighted (looking at the latest Cython v0.21) and their classification (similar keywords):
packed # (same as public)
namespace # (same as extern)
cppclass # (same as class)StandardError# (same as Exception)xrange# (same as range)
Py_ssize_t # (standard type, used quite often)
That's just off the top of my head, maybe there's more...
Would also be nice to highlight standard C types from stdint which are used in Cython quite often:
Some miscellaneous flaws I've noticed in highlighting:
x.readonly =1
readonly shouldn't be highlighted since it's a wrong context (same thing with public, readonly, cdef, api etc -- note that types work fine so x.int or x.struct wouldn't get highlighted).
Example:
Looks like GitHub's syntax highlighter correctly picks it up (except
namespace
) :)The text was updated successfully, but these errors were encountered: