{"action":"created","issue":{"url":"https://api.github.com/repos/othree/yajs.vim/issues/168","repository_url":"https://api.github.com/repos/othree/yajs.vim","labels_url":"https://api.github.com/repos/othree/yajs.vim/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/othree/yajs.vim/issues/168/comments","events_url":"https://api.github.com/repos/othree/yajs.vim/issues/168/events","html_url":"https://github.com/othree/yajs.vim/issues/168","id":367490441,"node_id":"MDU6SXNzdWUzNjc0OTA0NDE=","number":168,"title":"es.next.syntax.vim + yajs syntax error for nested JS code in JSX","user":{"login":"rishitank","id":3771081,"node_id":"MDQ6VXNlcjM3NzEwODE=","avatar_url":"https://avatars1.githubusercontent.com/u/3771081?v=4","gravatar_id":"","url":"https://api.github.com/users/rishitank","html_url":"https://github.com/rishitank","followers_url":"https://api.github.com/users/rishitank/followers","following_url":"https://api.github.com/users/rishitank/following{/other_user}","gists_url":"https://api.github.com/users/rishitank/gists{/gist_id}","starred_url":"https://api.github.com/users/rishitank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishitank/subscriptions","organizations_url":"https://api.github.com/users/rishitank/orgs","repos_url":"https://api.github.com/users/rishitank/repos","events_url":"https://api.github.com/users/rishitank/events{/privacy}","received_events_url":"https://api.github.com/users/rishitank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-06T19:56:09Z","updated_at":"2018-10-07T21:54:37Z","closed_at":null,"author_association":"NONE","body":"Hi, not sure if this issue belongs in es.next.syntax.vim or yajs, but this issue appears to occur when both plugins are used as you can see below:\r\n\r\n![image](https://user-images.githubusercontent.com/3771081/46575238-a766fa80-c9a9-11e8-8387-58bdf7936c39.png)\r\n\r\nI use es.next.syntax.vim to add syntax highlighting for decorators, static fields etc.\r\n\r\nFrom what I can tell, it seems that wrapping JSX with brackets (from optgroup above) causes the syntax to be read as if function arguments, hence matching the same colour as function arguments."},"comment":{"url":"https://api.github.com/repos/othree/yajs.vim/issues/comments/427690417","html_url":"https://github.com/othree/yajs.vim/issues/168#issuecomment-427690417","issue_url":"https://api.github.com/repos/othree/yajs.vim/issues/168","id":427690417,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY5MDQxNw==","user":{"login":"rishitank","id":3771081,"node_id":"MDQ6VXNlcjM3NzEwODE=","avatar_url":"https://avatars1.githubusercontent.com/u/3771081?v=4","gravatar_id":"","url":"https://api.github.com/users/rishitank","html_url":"https://github.com/rishitank","followers_url":"https://api.github.com/users/rishitank/followers","following_url":"https://api.github.com/users/rishitank/following{/other_user}","gists_url":"https://api.github.com/users/rishitank/gists{/gist_id}","starred_url":"https://api.github.com/users/rishitank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rishitank/subscriptions","organizations_url":"https://api.github.com/users/rishitank/orgs","repos_url":"https://api.github.com/users/rishitank/repos","events_url":"https://api.github.com/users/rishitank/events{/privacy}","received_events_url":"https://api.github.com/users/rishitank/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T21:54:37Z","updated_at":"2018-10-07T21:54:37Z","author_association":"NONE","body":"Update: I've found that if there is only one argument in the arrow function of a nested JSX expression then the syntax highlighting and errors do not occur, but if wrapping the function arguments in brackets e.g. if specifying multiple arguments such as `(item, i) =>`, then the above issue occurs, whereas `item =>` is valid."}}
{"actor":{"display_login":"rishitank"}}