{"action":"created","issue":{"url":"https://api.github.com/repos/chrisbra/vim-zsh/issues/6","repository_url":"https://api.github.com/repos/chrisbra/vim-zsh","labels_url":"https://api.github.com/repos/chrisbra/vim-zsh/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/chrisbra/vim-zsh/issues/6/comments","events_url":"https://api.github.com/repos/chrisbra/vim-zsh/issues/6/events","html_url":"https://github.com/chrisbra/vim-zsh/issues/6","id":139911422,"number":6,"title":"Globbing flags break highlighting and folding.","user":{"login":"lucc","id":1104419,"avatar_url":"https://avatars.githubusercontent.com/u/1104419?v=3","gravatar_id":"","url":"https://api.github.com/users/lucc","html_url":"https://github.com/lucc","followers_url":"https://api.github.com/users/lucc/followers","following_url":"https://api.github.com/users/lucc/following{/other_user}","gists_url":"https://api.github.com/users/lucc/gists{/gist_id}","starred_url":"https://api.github.com/users/lucc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucc/subscriptions","organizations_url":"https://api.github.com/users/lucc/orgs","repos_url":"https://api.github.com/users/lucc/repos","events_url":"https://api.github.com/users/lucc/events{/privacy}","received_events_url":"https://api.github.com/users/lucc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T14:55:03Z","updated_at":"2016-03-11T07:41:34Z","closed_at":"2016-03-11T06:38:56Z","body":"Globbing flags are described in zshexpn(1). As an example take this test file:\r\n```zsh\r\n#!/bin/zsh\r\nfunction bar () {\r\n  [[ $1 = (#i)test ]]\r\n}\r\nfunction foo () {\r\n  bar\r\n  ls *(#l)\r\n}\r\na=(\r\n  1\r\n  2\r\n)\r\necho \"the end\"\r\n```\r\nThe highlighting error can be seen directly, to see the folding error you can execute `for i in range(1,line('$')) | echo foldlevel(i) .\"\\t\". getline(i) | endfor` in vim."},"comment":{"url":"https://api.github.com/repos/chrisbra/vim-zsh/issues/comments/195236097","html_url":"https://github.com/chrisbra/vim-zsh/issues/6#issuecomment-195236097","issue_url":"https://api.github.com/repos/chrisbra/vim-zsh/issues/6","id":195236097,"user":{"login":"lucc","id":1104419,"avatar_url":"https://avatars.githubusercontent.com/u/1104419?v=3","gravatar_id":"","url":"https://api.github.com/users/lucc","html_url":"https://github.com/lucc","followers_url":"https://api.github.com/users/lucc/followers","following_url":"https://api.github.com/users/lucc/following{/other_user}","gists_url":"https://api.github.com/users/lucc/gists{/gist_id}","starred_url":"https://api.github.com/users/lucc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucc/subscriptions","organizations_url":"https://api.github.com/users/lucc/orgs","repos_url":"https://api.github.com/users/lucc/repos","events_url":"https://api.github.com/users/lucc/events{/privacy}","received_events_url":"https://api.github.com/users/lucc/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T07:41:34Z","updated_at":"2016-03-11T07:41:34Z","body":"Thank you, that fixes the original issue but I think the globing flags are not allowed every where. Maybe the syntax region should be allowed or searched for in certain places (sorry I don't know the terms and internals of vim syntax definitions). But it is already an improvement like this."}}