{"action":"created","issue":{"url":"https://api.github.com/repos/soffes/SyntaxKit/issues/19","repository_url":"https://api.github.com/repos/soffes/SyntaxKit","labels_url":"https://api.github.com/repos/soffes/SyntaxKit/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/soffes/SyntaxKit/issues/19/comments","events_url":"https://api.github.com/repos/soffes/SyntaxKit/issues/19/events","html_url":"https://github.com/soffes/SyntaxKit/issues/19","id":197671740,"number":19,"title":"Wrong colouring for latex?","user":{"login":"colasbd","id":4303814,"avatar_url":"https://avatars.githubusercontent.com/u/4303814?v=3","gravatar_id":"","url":"https://api.github.com/users/colasbd","html_url":"https://github.com/colasbd","followers_url":"https://api.github.com/users/colasbd/followers","following_url":"https://api.github.com/users/colasbd/following{/other_user}","gists_url":"https://api.github.com/users/colasbd/gists{/gist_id}","starred_url":"https://api.github.com/users/colasbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colasbd/subscriptions","organizations_url":"https://api.github.com/users/colasbd/orgs","repos_url":"https://api.github.com/users/colasbd/repos","events_url":"https://api.github.com/users/colasbd/events{/privacy}","received_events_url":"https://api.github.com/users/colasbd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-27T09:08:57Z","updated_at":"2016-12-27T09:53:16Z","closed_at":null,"body":"It seems that there is an issue with this library.\r\n\r\nFor the text\r\n```\r\n\\begin{document}\r\nThis is a test\r\n$test$\r\n\\end{document}\r\n\r\n\\begin{document}\r\n$x+y$\r\n\\end{document}\r\n```\r\nand the theme [`Rainbow_Dash`](https://github.com/sanssecours/Rainbow-Dash.tmbundle/blob/master/Themes/Rainbow%20Dash.tmTheme), I get the colours\r\n![capture d ecran 2016-12-27 a 00 42 05](https://cloud.githubusercontent.com/assets/4303814/21487605/67a16b50-cbcd-11e6-97a3-e593ff61b991.png)\r\n\r\nThese are not (I guess) the correct colours.\r\n\r\nThe `.tmLanguage` file that I use is given [here](https://github.com/textmate/latex.tmbundle/blob/master/Syntaxes/LaTeX.plist).\r\n\r\nMore precisely, here is the `NSAttributedString` I get:\r\n\r\n```\r\n\\documentclass{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.172549 0.364706 0.803922 1\";\r\n    caret = \"#000000\";\r\n    fontStyle = bold;\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}{article}\r\n{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.301961 0.301961 0.301961 1\";\r\n    caret = \"#000000\";\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}\\begin{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 0.501961 0 1\";\r\n    caret = \"#000000\";\r\n    fontStyle = bold;\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}{{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.301961 0.301961 0.301961 1\";\r\n    caret = \"#000000\";\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}document{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.301961 0.301961 0.301961 1\";\r\n    caret = \"#000000\";\r\n    fontStyle = italic;\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}}\r\nCeci est mon test?\r\n$test$\r\n{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.301961 0.301961 0.301961 1\";\r\n    caret = \"#000000\";\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}\\end{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 0.501961 0 1\";\r\n    caret = \"#000000\";\r\n    fontStyle = bold;\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}{{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.301961 0.301961 0.301961 1\";\r\n    caret = \"#000000\";\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}document{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.301961 0.301961 0.301961 1\";\r\n    caret = \"#000000\";\r\n    fontStyle = italic;\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}}{\r\n    NSBackgroundColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 1 1 1 1\";\r\n    NSColor = \"NSCustomColorSpace sRGB IEC61966-2.1 colorspace 0.301961 0.301961 0.301961 1\";\r\n    caret = \"#000000\";\r\n    invisibles = \"#BFBFBF\";\r\n    lineHighlight = \"#00000012\";\r\n    selection = \"#4D97FF54\";\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/soffes/SyntaxKit/issues/comments/269303397","html_url":"https://github.com/soffes/SyntaxKit/issues/19#issuecomment-269303397","issue_url":"https://api.github.com/repos/soffes/SyntaxKit/issues/19","id":269303397,"user":{"login":"alehed","id":10847473,"avatar_url":"https://avatars.githubusercontent.com/u/10847473?v=3","gravatar_id":"","url":"https://api.github.com/users/alehed","html_url":"https://github.com/alehed","followers_url":"https://api.github.com/users/alehed/followers","following_url":"https://api.github.com/users/alehed/following{/other_user}","gists_url":"https://api.github.com/users/alehed/gists{/gist_id}","starred_url":"https://api.github.com/users/alehed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alehed/subscriptions","organizations_url":"https://api.github.com/users/alehed/orgs","repos_url":"https://api.github.com/users/alehed/repos","events_url":"https://api.github.com/users/alehed/events{/privacy}","received_events_url":"https://api.github.com/users/alehed/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T09:53:16Z","updated_at":"2016-12-27T09:53:16Z","body":"http://manual.macromates.com/en/bundles#installing_a_bundle"}}
{"actor":{"display_login":"alehed"}}