hegemonic / catharsis

A JavaScript parser for Google Closure Compiler and JSDoc type expressions.
MIT License
54 stars 14 forks source link

Record types that contain functions don't work correctly when JSDoc support is enabled #43

Closed hegemonic closed 9 years ago

hegemonic commented 9 years ago

When JSDoc support is enabled, and you try to parse a type expression like {foo:function()}, you get the following error: Expected "#", ",", ".", "/", ":", "<", "=", "[]", "}" or "~" but "(" found.

When JSDoc support is not enabled, Catharsis has no trouble parsing this type expression.

hegemonic commented 9 years ago

This is a regression that was caused by 695c3862353ea63771f7e289cab0374964804d0e, as a result of adding the character : to PropertyChainItem.

hegemonic commented 9 years ago

Fixed on master.