Skip to content

Update the syntax to fix nested languages and emphases #10

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

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

eugenesvk
Copy link

  • This fixes broken nested language scopes that didn't stop at the closing tag (e.g., Python)
  • Adds a couple of emphasis scopes (underlines/strikethrough)
  • Regroups the other scopes
  • Adds syntax test (for (nested)emphasis/embedded only) to make it easier to change syntax
  • Adds a few more advanced keybinds that, e.g., don't bold already bold text and also are able to Unbold/unitalicize test
  • Moves the syntax to version 2 that fixes a bunch of bugs, but requires ST 4075, so you would need to update the package manifest:

If you want to support versions before 4075, then I think you'd need to create either of these:

  • two different tag types (e.g., st3-a.b.c and st4-a.b.c) or
  • two different branches (e.g., continue to use master for ST<4075 and st4 for later versions)
    and add that info with version ranges to the Package Controls repo, check the examples of MarkdownEditing/Missing Palette Commands:
		{
			"name": "MarkdownEditing",
			"details": "https://github.com/SublimeText-Markdown/MarkdownEditing",
			"homepage": "https://sublimetext-markdown.github.io/MarkdownEditing",
			"labels": ["markdown", "github markdown", "gfm", "multimarkdown", "color scheme"],
			"releases": [
				{
					"sublime_text": "2000 - 3175",
					"tags": "st2-"
				},
				{
					"sublime_text": "3176 - 4106",
					"tags": "3176-"
				},
				{
					"sublime_text": ">=4107",
					"tags": "4107-"
				}
			]
		},
		{
			"name": "Missing Palette Commands",
			"details": "https://github.com/fjl/Sublime-Missing-Palette-Commands",
			"releases": [
				{
					"sublime_text": "<3000",
					"branch": "master"
				},
				{
					"sublime_text": ">=3000",
					"branch": "st3"
				}
			]
		},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant