Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong invalid highlighting of double escaped patterns in key bindings #346

Open
deathaxe opened this issue May 29, 2021 · 1 comment
Open
Assignees
Labels

Comments

@deathaxe
Copy link
Member

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 }
		]
	},
@keith-hall
Copy link
Member

potentially related: sublimehq/sublime_text#1597

@FichteFoll FichteFoll self-assigned this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants