PackageDev icon indicating copy to clipboard operation
PackageDev copied to clipboard

Wrong invalid highlighting of double escaped patterns in key bindings

Open deathaxe opened this issue 4 years ago • 1 comments

grafik

	{ "keys": ["alt+b"], "command": "insert_snippet", "args": {"contents": "**${SELECTION/^\\*\\*|^__|\\*\\*$|__$//g}**"}, "context":
		[
			{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - markup.bold - markup.bold_italic", "match_all": true },
			{ "key": "setting.mde.bold_marker_asterisk", "operator": "equal", "operand": true },
			{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
			{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "\\*$|__$", "match_all": true },
			{ "key": "following_text", "operator": "not_regex_contains", "operand": "^\\*|^__", "match_all": true }
		]
	},

deathaxe avatar May 29 '21 14:05 deathaxe

potentially related: https://github.com/sublimehq/sublime_text/issues/1597

keith-hall avatar May 29 '21 19:05 keith-hall