{"action":"created","issue":{"url":"https://api.github.com/repos/wellle/targets.vim/issues/107","labels_url":"https://api.github.com/repos/wellle/targets.vim/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/wellle/targets.vim/issues/107/comments","events_url":"https://api.github.com/repos/wellle/targets.vim/issues/107/events","html_url":"https://github.com/wellle/targets.vim/issues/107","id":66057863,"number":107,"title":"Argument Text Object: Several Bugs","user":{"login":"orbisvicis","id":730739,"avatar_url":"https://avatars.githubusercontent.com/u/730739?v=3","gravatar_id":"","url":"https://api.github.com/users/orbisvicis","html_url":"https://github.com/orbisvicis","followers_url":"https://api.github.com/users/orbisvicis/followers","following_url":"https://api.github.com/users/orbisvicis/following{/other_user}","gists_url":"https://api.github.com/users/orbisvicis/gists{/gist_id}","starred_url":"https://api.github.com/users/orbisvicis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbisvicis/subscriptions","organizations_url":"https://api.github.com/users/orbisvicis/orgs","repos_url":"https://api.github.com/users/orbisvicis/repos","events_url":"https://api.github.com/users/orbisvicis/events{/privacy}","received_events_url":"https://api.github.com/users/orbisvicis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-03T02:36:46Z","updated_at":"2015-04-05T17:46:23Z","closed_at":null,"body":"Let's select an argument with visual-mode operator!\r\n\r\n###### Problem 1\r\n\r\nExpected:\r\n```\r\n                  +\r\nfunction(a, 33, Rstyle=\"calls, with commas inside strings, are OK\")\r\n              +--------------------------------------------------+\r\n```\r\nActual:\r\n```\r\n                  +\r\nfunction(a, 33, Rstyle=\"calls, with commas inside strings, are OK\")\r\n              +-------------+\r\n```\r\nWhereas this works as expected:\r\n```\r\n               +\r\nfunction(a, 33, [1, 2, 3, 4, 5, ], 61234, V=\"one, two\", )\r\n              +-----------------+\r\n```\r\nConclusion: the argument text object is smart enough to ignore nested argument objects, but not smart enough to ignore pair-text-objects and quote-text-objects as arguments.\r\n\r\n###### Problem 2\r\n\r\nExpected:\r\n```\r\n                                    +\r\nfunction(a, 33, Rstyle=\"calls, with commas inside strings, are OK\")\r\n              +--------------------------------------------------+\r\n```\r\nActual\r\n```\r\n                                    +\r\nfunction(a, 33, Rstyle=\"calls, with commas inside strings, are OK\")\r\n                             +--------------------------+\r\n```\r\nPerhaps a nesting bug, so I repeat the text object in visual-mode (the previous range is above, the final below):\r\n```\r\n                                    +\r\n                             +--------------------------+\r\nfunction(a, 33, Rstyle=\"calls, with commas inside strings, are OK\")\r\n+\r\n```\r\nConclusion: this is just plain broken."},"comment":{"url":"https://api.github.com/repos/wellle/targets.vim/issues/comments/89818354","html_url":"https://github.com/wellle/targets.vim/issues/107#issuecomment-89818354","issue_url":"https://api.github.com/repos/wellle/targets.vim/issues/107","id":89818354,"user":{"login":"wellle","id":474504,"avatar_url":"https://avatars.githubusercontent.com/u/474504?v=3","gravatar_id":"","url":"https://api.github.com/users/wellle","html_url":"https://github.com/wellle","followers_url":"https://api.github.com/users/wellle/followers","following_url":"https://api.github.com/users/wellle/following{/other_user}","gists_url":"https://api.github.com/users/wellle/gists{/gist_id}","starred_url":"https://api.github.com/users/wellle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wellle/subscriptions","organizations_url":"https://api.github.com/users/wellle/orgs","repos_url":"https://api.github.com/users/wellle/repos","events_url":"https://api.github.com/users/wellle/events{/privacy}","received_events_url":"https://api.github.com/users/wellle/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T17:46:23Z","updated_at":"2015-04-05T17:46:23Z","body":"I see, I will consider handling quotes for argument text objects :+1:"}}