{"action":"opened","issue":{"url":"https://api.github.com/repos/lervag/vimtex/issues/491","repository_url":"https://api.github.com/repos/lervag/vimtex","labels_url":"https://api.github.com/repos/lervag/vimtex/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/lervag/vimtex/issues/491/comments","events_url":"https://api.github.com/repos/lervag/vimtex/issues/491/events","html_url":"https://github.com/lervag/vimtex/issues/491","id":165391280,"number":491,"title":"A few issues with syntax highlighting","user":{"login":"danielbmarques","id":15813674,"avatar_url":"https://avatars.githubusercontent.com/u/15813674?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbmarques","html_url":"https://github.com/danielbmarques","followers_url":"https://api.github.com/users/danielbmarques/followers","following_url":"https://api.github.com/users/danielbmarques/following{/other_user}","gists_url":"https://api.github.com/users/danielbmarques/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbmarques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbmarques/subscriptions","organizations_url":"https://api.github.com/users/danielbmarques/orgs","repos_url":"https://api.github.com/users/danielbmarques/repos","events_url":"https://api.github.com/users/danielbmarques/events{/privacy}","received_events_url":"https://api.github.com/users/danielbmarques/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-13T18:36:56Z","updated_at":"2016-07-13T18:36:56Z","closed_at":null,"body":"There are a few details that I think could be improved in Vimtex's syntax highlighting features:\r\n\r\n1. It seems to disable spelling for words inside `\\emph` commands. Here's the same file with and without Vimtex:\r\n\r\n    ![captura de tela 2016-07-13 as 14 48 29](https://cloud.githubusercontent.com/assets/15813674/16813810/9209ee04-4909-11e6-9a17-09a444a627b4.png) ![captura de tela 2016-07-13 as 14 48 58](https://cloud.githubusercontent.com/assets/15813674/16813812/947fb128-4909-11e6-90a8-7c1d51b91b8f.png)\r\n\r\n2. This could be my fault, but Vimtex overrides what I set in `~/.vim/after/syntax/tex.vim`?\r\n    I have these lines in that file:\r\n    ```vim\r\n    syntax match texStatement \"\\\\citetitle\" nextgroup=texRefOption,texCite\r\n    syntax match texStatement \"\\\\apud\" nextgroup=texRefOption,texCite\r\n    ```\r\n   The first is for a standard `biblatex` command and the second is for a command used in my own [`biblatex-abnt`](https://github.com/abntex/biblatex-abnt) style.\r\n\r\n    Without Vimtex it works perfectly:\r\n   ![captura de tela 2016-07-13 as 14 49 09](https://cloud.githubusercontent.com/assets/15813674/16814781/b3df614a-490d-11e6-92c5-6a30ac210ebd.png)\r\n\r\n    With Vimtex it doesn't:\r\n    ![captura de tela 2016-07-13 as 14 47 19](https://cloud.githubusercontent.com/assets/15813674/16814795/c1f94df4-490d-11e6-992d-36890d134348.png)\r\n\r\n    Should Vimtex override the stuff in `~/.vim/after/syntax/tex.vim`? If so, where should I add those lines?\r\n\r\n3. And this brings me to issue number three: most of the standard `biblatex` commands aren't supported. Here's a full list of the commands mentioned in the manual:\r\n\r\n    ![captura de tela 2016-07-13 as 15 27 31](https://cloud.githubusercontent.com/assets/15813674/16814926/598c0d64-490e-11e6-97c7-0040dd79ef25.png)\r\n\r\n    Do you think I should talk to Bernd Feige about adding this to the default syntax file? I ask because you have your own \"Improve support for cite commands\" line at `/vimtex/after/syntax/`, so there might be a reason to keep this here. I could try to add this stuff myself and make a PR, but I'm not big on regex, so I'd probably have to use many keywords to account for commands that could be abstracted into a single pattern. Let me know if you want me to try anyway.\r\n\r\n"}}
{"actor":{"display_login":"danielbmarques"}}