{"action":"created","issue":{"url":"https://api.github.com/repos/rleitner/language-bb/issues/3","repository_url":"https://api.github.com/repos/rleitner/language-bb","labels_url":"https://api.github.com/repos/rleitner/language-bb/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rleitner/language-bb/issues/3/comments","events_url":"https://api.github.com/repos/rleitner/language-bb/issues/3/events","html_url":"https://github.com/rleitner/language-bb/issues/3","id":148338462,"number":3,"title":"Syntax highlighting bug","user":{"login":"rossburton","id":32394,"avatar_url":"https://avatars.githubusercontent.com/u/32394?v=3","gravatar_id":"","url":"https://api.github.com/users/rossburton","html_url":"https://github.com/rossburton","followers_url":"https://api.github.com/users/rossburton/followers","following_url":"https://api.github.com/users/rossburton/following{/other_user}","gists_url":"https://api.github.com/users/rossburton/gists{/gist_id}","starred_url":"https://api.github.com/users/rossburton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossburton/subscriptions","organizations_url":"https://api.github.com/users/rossburton/orgs","repos_url":"https://api.github.com/users/rossburton/repos","events_url":"https://api.github.com/users/rossburton/events{/privacy}","received_events_url":"https://api.github.com/users/rossburton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rleitner/language-bb/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-14T11:58:50Z","updated_at":"2016-04-15T09:38:00Z","closed_at":"2016-04-15T08:41:17Z","body":"The following bbclass snipped causes the highlighting to go all wrong.  Note how the FOO=bar assignments are coloured differently under language-bb.\r\n\r\n```\r\nFOO = \"bar\"\r\n\r\ndef some_python_function(d):\r\n    bb.warn(u\"PE = %s\", \"epoch\")\r\n\r\nFOO = \"bar\"\r\n```\r\n\r\nThe highlighting parser sees PE = in the python block and decides that its a bitbake variable assignment.\r\n"},"comment":{"url":"https://api.github.com/repos/rleitner/language-bb/issues/comments/210385491","html_url":"https://github.com/rleitner/language-bb/issues/3#issuecomment-210385491","issue_url":"https://api.github.com/repos/rleitner/language-bb/issues/3","id":210385491,"user":{"login":"rossburton","id":32394,"avatar_url":"https://avatars.githubusercontent.com/u/32394?v=3","gravatar_id":"","url":"https://api.github.com/users/rossburton","html_url":"https://github.com/rossburton","followers_url":"https://api.github.com/users/rossburton/followers","following_url":"https://api.github.com/users/rossburton/following{/other_user}","gists_url":"https://api.github.com/users/rossburton/gists{/gist_id}","starred_url":"https://api.github.com/users/rossburton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossburton/subscriptions","organizations_url":"https://api.github.com/users/rossburton/orgs","repos_url":"https://api.github.com/users/rossburton/repos","events_url":"https://api.github.com/users/rossburton/events{/privacy}","received_events_url":"https://api.github.com/users/rossburton/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T09:38:00Z","updated_at":"2016-04-15T09:38:00Z","body":"I've replaced my 0.2.1 install of language-bb with a git clone but this still breaks for me.\r\n\r\nThe original source of the bad formatting was meta/classes/buildhistory.bbclass, in the write_recipeinfo function (oe-core git master)."}}