{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5855","repository_url":"https://api.github.com/repos/sphinx-doc/sphinx","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5855/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5855/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5855/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/5855","id":393728142,"node_id":"MDU6SXNzdWUzOTM3MjgxNDI=","number":5855,"title":"Python code block with question mark (?) could not be highlighted","user":{"login":"yoonghm","id":4215991,"node_id":"MDQ6VXNlcjQyMTU5OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4215991?v=4","gravatar_id":"","url":"https://api.github.com/users/yoonghm","html_url":"https://github.com/yoonghm","followers_url":"https://api.github.com/users/yoonghm/followers","following_url":"https://api.github.com/users/yoonghm/following{/other_user}","gists_url":"https://api.github.com/users/yoonghm/gists{/gist_id}","starred_url":"https://api.github.com/users/yoonghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoonghm/subscriptions","organizations_url":"https://api.github.com/users/yoonghm/orgs","repos_url":"https://api.github.com/users/yoonghm/repos","events_url":"https://api.github.com/users/yoonghm/events{/privacy}","received_events_url":"https://api.github.com/users/yoonghm/received_events","type":"User","site_admin":false},"labels":[{"id":162407998,"node_id":"MDU6TGFiZWwxNjI0MDc5OTg=","url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-23T06:48:01Z","updated_at":"2018-12-23T14:58:39Z","closed_at":"2018-12-23T14:58:39Z","author_association":"NONE","body":"Subject: Sphinx could not highlight Python code block with question mark (?)\r\n\r\n### Problem\r\n\r\nSphinx could not highlight Python code block with question mark (?)\r\n\r\n#### Procedure to reproduce the problem\r\n\r\nI have the following code block\r\n\r\n```\r\n..  code:: Python\r\n\r\n    >>> a = 1.0\r\n    >>> print(a, '=> integer? ', a.is_integer())\r\n    1.0 => integer?  True\r\n    >>> a = 1.1\r\n    >>> print(a, '=> integer? ', a.is_integer())\r\n    1.1 => integer?  False\r\n```\r\nIf I remove the question mark from the *output*, it then works\r\n\r\n```\r\n..  code:: Python\r\n\r\n    >>> a = 1.0\r\n    >>> print(a, '=> integer? ', a.is_integer())\r\n    1.0 => integer  True\r\n    >>> a = 1.1\r\n    >>> print(a, '=> integer? ', a.is_integer())\r\n    1.1 => integer  False\r\n```\r\n#### Error logs / results\r\nIt produces error:  ```... WARNING: Could not lex literal_block as \"Python\". Highlighting skipped. ...```\r\n\r\n#### Expected results\r\n\r\nRemove any question mark (?) from the output.\r\n\r\n### Reproducible project / your project\r\nNIL\r\n\r\n### Environment info\r\n- OS: Windows 10\r\n- Python version: 3.7\r\n- Sphinx version:\r\n- <Extra tools e.g.: Browser, tex or something else>\r\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments/449641736","html_url":"https://github.com/sphinx-doc/sphinx/issues/5855#issuecomment-449641736","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/5855","id":449641736,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTY0MTczNg==","user":{"login":"yoonghm","id":4215991,"node_id":"MDQ6VXNlcjQyMTU5OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4215991?v=4","gravatar_id":"","url":"https://api.github.com/users/yoonghm","html_url":"https://github.com/yoonghm","followers_url":"https://api.github.com/users/yoonghm/followers","following_url":"https://api.github.com/users/yoonghm/following{/other_user}","gists_url":"https://api.github.com/users/yoonghm/gists{/gist_id}","starred_url":"https://api.github.com/users/yoonghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoonghm/subscriptions","organizations_url":"https://api.github.com/users/yoonghm/orgs","repos_url":"https://api.github.com/users/yoonghm/repos","events_url":"https://api.github.com/users/yoonghm/events{/privacy}","received_events_url":"https://api.github.com/users/yoonghm/received_events","type":"User","site_admin":false},"created_at":"2018-12-23T14:58:39Z","updated_at":"2018-12-23T14:58:39Z","author_association":"NONE","body":"[test.zip](https://github.com/sphinx-doc/sphinx/files/2706039/test.zip)\r\n@tk0miya , it is working now after changing `Python` to `python`. Thanks."}}
{"actor":{"display_login":"yoonghm"}}