{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/11856","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/11856/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/11856/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/11856/events","html_url":"https://github.com/Microsoft/vscode/issues/11856","id":176286893,"number":11856,"title":"Bracket matching does not work as expected if the opening brace symbol is contained in the closing brace symbol (e.g. sequence endsequence)","user":{"login":"eventhelix","id":1028349,"avatar_url":"https://avatars.githubusercontent.com/u/1028349?v=3","gravatar_id":"","url":"https://api.github.com/users/eventhelix","html_url":"https://github.com/eventhelix","followers_url":"https://api.github.com/users/eventhelix/followers","following_url":"https://api.github.com/users/eventhelix/following{/other_user}","gists_url":"https://api.github.com/users/eventhelix/gists{/gist_id}","starred_url":"https://api.github.com/users/eventhelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventhelix/subscriptions","organizations_url":"https://api.github.com/users/eventhelix/orgs","repos_url":"https://api.github.com/users/eventhelix/repos","events_url":"https://api.github.com/users/eventhelix/events{/privacy}","received_events_url":"https://api.github.com/users/eventhelix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-12T03:17:24Z","updated_at":"2016-09-12T03:17:24Z","closed_at":null,"body":"- VSCode Version: 1.5.1\r\n- OS Version: Windows 10\r\n\r\nSteps to Reproduce:\r\n\r\n1. Add custom bracket definitions as shown\r\n\r\n```json\r\n{\r\n    \"comments\": {\r\n        // symbol used for single line comment. Remove this entry if your language does not support line comments\r\n        \"lineComment\": \"//\",\r\n        // symbols used for start and end a block comment. Remove this entry if your language does not support block comments\r\n        \"blockComment\": [ \"/*\", \"*/\" ]\r\n    },\r\n    // symbols used as brackets\r\n    \"brackets\": [\r\n        [\"(*\", \"*)\"],       \r\n        [\"[*\", \"*]\"],\r\n        [\"{\", \"}\"],\r\n        [\"[\", \"]\"],\r\n        [\"(\", \")\"],\r\n        [\"sequence\", \"endsequence\"],\r\n        [\"feature\", \"endfeature\"]   \r\n    ],\r\n    // symbols that are auto closed when typing\r\n    \"autoClosingPairs\": [\r\n        [\"(*\", \"*)\"],       \r\n        [\"[*\", \"*]\"],\r\n        [\"{\", \"}\"],\r\n        [\"\\\"\", \"\\\"\"],\r\n        [\"'\", \"'\"],\r\n        [\"sequence\", \"endsequence\"],\r\n        [\"feature\", \"endfeature\"]  \r\n    ],\r\n    // symbols that that can be used to surround a selection\r\n    \"surroundingPairs\": [\r\n        [\"(*\", \"*)\"],       \r\n        [\"[*\", \"*]\"],\r\n        [\"{\", \"}\"],\r\n        [\"[\", \"]\"],\r\n        [\"(\", \")\"],\r\n        [\"\\\"\", \"\\\"\"],\r\n        [\"'\", \"'\"],\r\n        [\"sequence\", \"endsequence\"],\r\n        [\"feature\", \"endfeature\"]  \r\n    ]\r\n}\r\n```\r\n\r\n\r\n2.  Brace matching (Control+Shift+\\) for nested sequence blocks does not work as expected. For the following text: \r\n\r\n```\r\nsequence \"outer\"\r\n     sequence \"inner\"\r\n     endsequence\r\nendsequence\r\n```\r\nA brace match command on the outer endsequence, mistakenly selects the sequence text in the inner endsequence.\r\n"}}
{"actor":{"display_login":"eventhelix"}}