{"action":"opened","issue":{"url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/470","repository_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit","labels_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/470/comments","events_url":"https://api.github.com/repos/jonathanslenders/python-prompt-toolkit/issues/470/events","html_url":"https://github.com/jonathanslenders/python-prompt-toolkit/issues/470","id":208052254,"number":470,"title":"Setting the highlight parentheses style: what I am I doing wrong","user":{"login":"asmeurer","id":71486,"avatar_url":"https://avatars.githubusercontent.com/u/71486?v=3","gravatar_id":"","url":"https://api.github.com/users/asmeurer","html_url":"https://github.com/asmeurer","followers_url":"https://api.github.com/users/asmeurer/followers","following_url":"https://api.github.com/users/asmeurer/following{/other_user}","gists_url":"https://api.github.com/users/asmeurer/gists{/gist_id}","starred_url":"https://api.github.com/users/asmeurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmeurer/subscriptions","organizations_url":"https://api.github.com/users/asmeurer/orgs","repos_url":"https://api.github.com/users/asmeurer/repos","events_url":"https://api.github.com/users/asmeurer/events{/privacy}","received_events_url":"https://api.github.com/users/asmeurer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-16T08:26:46Z","updated_at":"2017-02-16T08:26:46Z","closed_at":null,"body":"I am trying to define a custom style for the `HighlightMatchingBracketProcessor`. Here is a simplified version of what I am doing:\r\n\r\n```py\r\nfrom prompt_toolkit.shortcuts import prompt\r\nfrom prompt_toolkit.layout.processors import HighlightMatchingBracketProcessor\r\nfrom prompt_toolkit.token import Token\r\nfrom prompt_toolkit.styles import style_from_pygments\r\n\r\nfrom pygments.styles.tango import TangoStyle\r\n\r\nstyle_extra = {\r\n    Token.SearchMatch:   \"bg:#0000ff\", # blue\r\n}\r\n\r\nprompt(\">>> \", extra_input_processors=[HighlightMatchingBracketProcessor()], style=style_from_pygments(TangoStyle, style_extra))\r\n```\r\n\r\nIt isn't working. The highlighted parentheses are still gray, instead of blue. Am I doing something wrong or is there a bug here? "}}
{"actor":{"display_login":"asmeurer"}}