textmate / json.tmbundle

TextMate support for JSON
122 stars 26 forks source link

Add Validate Syntax command - ⌃+⇧+V #10

Closed ram-nadella closed 10 years ago

ram-nadella commented 10 years ago

Add a new command that does syntax validation on the JSON file and shows the error message in a tooltip. Behaviour is consistent with other language bundles where syntax validation is implemented.

The current reformat document shows syntax errors when the JSON is not valid but the user may not be interested in doing a document reformat, this adds a new command that is more consistent with the other bundles. The cursor is also moved to the error line.

infininight commented 10 years ago

Pulled, thanks!