{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/1088","repository_url":"https://api.github.com/repos/fatih/vim-go","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/1088/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/1088/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/1088/events","html_url":"https://github.com/fatih/vim-go/issues/1088","id":185102060,"number":1088,"title":"[feature]Highlight local vars","user":{"login":"jinleileiking","id":93968,"avatar_url":"https://avatars.githubusercontent.com/u/93968?v=3","gravatar_id":"","url":"https://api.github.com/users/jinleileiking","html_url":"https://github.com/jinleileiking","followers_url":"https://api.github.com/users/jinleileiking/followers","following_url":"https://api.github.com/users/jinleileiking/following{/other_user}","gists_url":"https://api.github.com/users/jinleileiking/gists{/gist_id}","starred_url":"https://api.github.com/users/jinleileiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinleileiking/subscriptions","organizations_url":"https://api.github.com/users/jinleileiking/orgs","repos_url":"https://api.github.com/users/jinleileiking/repos","events_url":"https://api.github.com/users/jinleileiking/events{/privacy}","received_events_url":"https://api.github.com/users/jinleileiking/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-25T12:25:32Z","updated_at":"2016-10-25T12:45:53Z","closed_at":"2016-10-25T12:29:06Z","body":" I know this is very difficult:\r\n\r\nHight the var in the func:\r\n\r\n```\r\nfun boo() {\r\n\r\n   var  a string\r\n\r\n \r\n    fmt.Println(a)\r\n\r\n}\r\n\r\n```\r\n\r\nHighlight the a in `fmt.Println(a)`"},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/256024411","html_url":"https://github.com/fatih/vim-go/issues/1088#issuecomment-256024411","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/1088","id":256024411,"user":{"login":"fatih","id":438920,"avatar_url":"https://avatars.githubusercontent.com/u/438920?v=3","gravatar_id":"","url":"https://api.github.com/users/fatih","html_url":"https://github.com/fatih","followers_url":"https://api.github.com/users/fatih/followers","following_url":"https://api.github.com/users/fatih/following{/other_user}","gists_url":"https://api.github.com/users/fatih/gists{/gist_id}","starred_url":"https://api.github.com/users/fatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatih/subscriptions","organizations_url":"https://api.github.com/users/fatih/orgs","repos_url":"https://api.github.com/users/fatih/repos","events_url":"https://api.github.com/users/fatih/events{/privacy}","received_events_url":"https://api.github.com/users/fatih/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T12:45:53Z","updated_at":"2016-10-25T12:45:53Z","body":"@jinleileiking this is not supported as it requires AST based highlighting. Vim-go doesn't support it. However you can call `:GoSameIds` if needed. I know it's not the same but variable highlighting is not useful if you have multiple variables and they each share the same color. You have to create an AST tool that parses, have a color scala that increases for each new variable and be sure it's highlighted correctly. "}}
{"actor":{"display_login":"fatih"}}