{"action":"created","issue":{"url":"https://api.github.com/repos/jgm/highlighting-kate/issues/57","labels_url":"https://api.github.com/repos/jgm/highlighting-kate/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/jgm/highlighting-kate/issues/57/comments","events_url":"https://api.github.com/repos/jgm/highlighting-kate/issues/57/events","html_url":"https://github.com/jgm/highlighting-kate/issues/57","id":54345903,"number":57,"title":"Problem parsing floats in cpp","user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-14T16:51:46Z","updated_at":"2015-01-27T17:40:37Z","closed_at":"2015-01-19T18:34:36Z","body":"(from @johguenther https://github.com/jgm/pandoc/issues/1879)\r\n\r\nSome float constants in code blocks are rendered partly in red when syntax highlighting is used with pandoc 1.13.2, because not all float literals are detected as such. For example, the following markdown\r\n\r\n    fails:\r\n\r\n    ~~~cpp\r\n    0.1f\r\n    1.0f\r\n    -0.1f\r\n    -1.0F\r\n    -1.0L\r\n    ~~~\r\n\r\n    works:\r\n\r\n    ~~~cpp\r\n    1e3\r\n    0.f\r\n    1.F\r\n    ~~~\r\n\r\nis [translated to the following LaTeX](http://johnmacfarlane.net/pandoc/try/?text=fails%3A%0A%0A~~~cpp%0A0.1f%0A1.0f%0A-0.1f%0A-1.0F%0A-1.0L%0A~~~%0A%0Aworks%3A%0A%0A~~~cpp%0A1e3%0A0.f%0A1.F%0A~~~&from=markdown&to=latex) (where it is easy to see that not all floats are entirely wrapped in `\\FloatTok{}`):\r\n\r\n    fails:\r\n\r\n    \\begin{Shaded}\r\n    \\begin{Highlighting}[]\r\n    \\FloatTok{0.}\\ErrorTok{1f}\r\n    \\FloatTok{1.}\\ErrorTok{0f}\r\n    \\FloatTok{-0.}\\ErrorTok{1f}\r\n    \\FloatTok{-1.}\\ErrorTok{0F}\r\n    \\FloatTok{-1.}\\DecValTok{0L}\r\n    \\end{Highlighting}\r\n    \\end{Shaded}\r\n\r\n    works:\r\n\r\n    \\begin{Shaded}\r\n    \\begin{Highlighting}[]\r\n    \\FloatTok{1e3}\r\n    \\FloatTok{0.f}\r\n    \\FloatTok{1.F}\r\n    \\end{Highlighting}\r\n    \\end{Shaded}\r\n\r\nExpected output is\r\n\r\n    \\begin{Highlighting}[]\r\n    \\FloatTok{0.1f}\r\n    \\FloatTok{1.0f}\r\n    \\FloatTok{-0.1f}\r\n    \\FloatTok{-1.0F}\r\n    \\FloatTok{-1.0L}\r\n    \\end{Highlighting}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jgm/highlighting-kate/issues/comments/71691654","html_url":"https://github.com/jgm/highlighting-kate/issues/57#issuecomment-71691654","issue_url":"https://api.github.com/repos/jgm/highlighting-kate/issues/57","id":71691654,"user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T17:40:37Z","updated_at":"2015-01-27T17:40:37Z","body":"I added the Makefile patch.\r\n"}}