comments containing } confused the regex, remove them

this enables all enum values in enum.h
ad functions to Cursor