{"action":"created","issue":{"url":"https://api.github.com/repos/processing/processing/issues/4013","labels_url":"https://api.github.com/repos/processing/processing/issues/4013/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing/issues/4013/comments","events_url":"https://api.github.com/repos/processing/processing/issues/4013/events","html_url":"https://github.com/processing/processing/issues/4013","id":111988969,"number":4013,"title":"double negative in tweak mode after saving changes","user":{"login":"james-mcelwain","id":10366310,"avatar_url":"https://avatars.githubusercontent.com/u/10366310?v=3","gravatar_id":"","url":"https://api.github.com/users/james-mcelwain","html_url":"https://github.com/james-mcelwain","followers_url":"https://api.github.com/users/james-mcelwain/followers","following_url":"https://api.github.com/users/james-mcelwain/following{/other_user}","gists_url":"https://api.github.com/users/james-mcelwain/gists{/gist_id}","starred_url":"https://api.github.com/users/james-mcelwain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-mcelwain/subscriptions","organizations_url":"https://api.github.com/users/james-mcelwain/orgs","repos_url":"https://api.github.com/users/james-mcelwain/repos","events_url":"https://api.github.com/users/james-mcelwain/events{/privacy}","received_events_url":"https://api.github.com/users/james-mcelwain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-17T22:46:58Z","updated_at":"2015-10-18T22:06:34Z","closed_at":null,"body":"In the case of a variable minus a positive integer, e.g. ` x - 5`, when the integer is tweaked to be negative, save changes will result in `x - -5` which throws an error. It would be great if saving changes from tweak mode could wrap the tweaked value in a paren (or convert the double `-` to a `+` ).\r\n\r\nThanks and much love!"},"comment":{"url":"https://api.github.com/repos/processing/processing/issues/comments/149054603","html_url":"https://github.com/processing/processing/issues/4013#issuecomment-149054603","issue_url":"https://api.github.com/repos/processing/processing/issues/4013","id":149054603,"user":{"login":"james-mcelwain","id":10366310,"avatar_url":"https://avatars.githubusercontent.com/u/10366310?v=3","gravatar_id":"","url":"https://api.github.com/users/james-mcelwain","html_url":"https://github.com/james-mcelwain","followers_url":"https://api.github.com/users/james-mcelwain/followers","following_url":"https://api.github.com/users/james-mcelwain/following{/other_user}","gists_url":"https://api.github.com/users/james-mcelwain/gists{/gist_id}","starred_url":"https://api.github.com/users/james-mcelwain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-mcelwain/subscriptions","organizations_url":"https://api.github.com/users/james-mcelwain/orgs","repos_url":"https://api.github.com/users/james-mcelwain/repos","events_url":"https://api.github.com/users/james-mcelwain/events{/privacy}","received_events_url":"https://api.github.com/users/james-mcelwain/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T22:06:34Z","updated_at":"2015-10-18T22:06:34Z","body":"Yup, bad example on my part--should have copied the offending code directly from my sketch: properly spacing the infix operator solves the problem, it's only when there is no whitespace between the `-`s. that an error is thrown."}}