{"action":"created","issue":{"url":"https://api.github.com/repos/vim/vim/issues/545","labels_url":"https://api.github.com/repos/vim/vim/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/vim/vim/issues/545/comments","events_url":"https://api.github.com/repos/vim/vim/issues/545/events","html_url":"https://github.com/vim/vim/issues/545","id":124612364,"number":545,"title":"syntax: \"\\a\" does not include characters like \"ä\" and that breaks syntax highlighting","user":{"login":"mrosic","id":13521178,"avatar_url":"https://avatars.githubusercontent.com/u/13521178?v=3","gravatar_id":"","url":"https://api.github.com/users/mrosic","html_url":"https://github.com/mrosic","followers_url":"https://api.github.com/users/mrosic/followers","following_url":"https://api.github.com/users/mrosic/following{/other_user}","gists_url":"https://api.github.com/users/mrosic/gists{/gist_id}","starred_url":"https://api.github.com/users/mrosic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrosic/subscriptions","organizations_url":"https://api.github.com/users/mrosic/orgs","repos_url":"https://api.github.com/users/mrosic/repos","events_url":"https://api.github.com/users/mrosic/events{/privacy}","received_events_url":"https://api.github.com/users/mrosic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-02T21:32:18Z","updated_at":"2016-01-03T13:10:51Z","closed_at":null,"body":"Steps to reproduce:\r\nSet your locale to de_AT.UTF-8 on Debian 8 or RHEL7.\r\nOpen /var/log/messages or /var/log/syslog on Debian 8 or do \"journalctl | vim -\" on RHEL 7.\r\nType \":set syntax=messages\"\r\n\r\nWhat you will notice is that syntax highlighting does work for the log entries in december but doesn't work for the log entries in January.\r\nReason: January on Austrian is \"Jänner\", the abbreviated form is \"Jän\". The \"ä\" breaks the syntax highlighting because vim doesn't consider \"ä\" as an alphabetic character.\r\n\r\nDetails:\r\nIn\r\n/usr/share/vim/vim74/syntax/messages.vim\r\nwe have the following line:\r\nsyn match   messagesDate        contained display '\\a\\a\\a [ 0-9]\\d *'\r\n\r\nAccording to \r\nhttp://vimdoc.sourceforge.net/htmldoc/pattern.html#/\\s\r\n\"\\a\" is an alphabetic character [A-Za-z]. Unfortunately that doesn't seem to include \"ä\" which makes Austrian sysadmins sad because they don't have syntax highlighting for Log files in January due to that error. Note that for example echo -e \"ä\\na\" | grep [a-z] will match both lines because unlike vim, grep considers \"ä\" to be a part of [a-z] which is exactly how it should be.\r\n\r\nTemporary workaround:\r\nIn /usr/share/vim/vim74/syntax/messages.vim \r\nchange\r\nsyn match   messagesDate        contained display '\\a\\a\\a [ 0-9]\\d *'\r\nto\r\nsyn match   messagesDate        contained display '\\a[a-zä]\\a [ 0-9]\\d *'\r\n"},"comment":{"url":"https://api.github.com/repos/vim/vim/issues/comments/168496817","html_url":"https://github.com/vim/vim/issues/545#issuecomment-168496817","issue_url":"https://api.github.com/repos/vim/vim/issues/545","id":168496817,"user":{"login":"mrosic","id":13521178,"avatar_url":"https://avatars.githubusercontent.com/u/13521178?v=3","gravatar_id":"","url":"https://api.github.com/users/mrosic","html_url":"https://github.com/mrosic","followers_url":"https://api.github.com/users/mrosic/followers","following_url":"https://api.github.com/users/mrosic/following{/other_user}","gists_url":"https://api.github.com/users/mrosic/gists{/gist_id}","starred_url":"https://api.github.com/users/mrosic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrosic/subscriptions","organizations_url":"https://api.github.com/users/mrosic/orgs","repos_url":"https://api.github.com/users/mrosic/repos","events_url":"https://api.github.com/users/mrosic/events{/privacy}","received_events_url":"https://api.github.com/users/mrosic/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T13:10:50Z","updated_at":"2016-01-03T13:10:50Z","body":"No, because I considered this to be a bug in vim.\r\nFrom my point of view [a-zA-Z] should include characters like ä. If you tell me that this is not going to get fixed in vim or that you do not consider this to be a bug then I will contact the maintainer of messages.vim."}}