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

Re-structure the grammar for syntax highlighting #1

Closed
novusnota opened this issue Apr 28, 2024 · 0 comments
Closed

Re-structure the grammar for syntax highlighting #1

novusnota opened this issue Apr 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working or doesn't seem right

Comments

@novusnota
Copy link
Member

novusnota commented Apr 28, 2024

Sublime Text 3+ can use the .tmLanguage format, which is a fancy xml, essentially.
Sublime Text 4+ uses a newer, .sublime-syntax format, which is a fancy yaml.

While both use Oniguruma RegExp engine and TextMate-like captures, their approaches slightly differ, with the former being almost 1-to-1 representation of the tact.tmLanguage.json but in the xml form.

Therefore, all that's needed here is to:

  • Setup the conversion from json form to xml or vice-versa — for example, this VSCode plugin can be used to convert from the .tmLanguage.json JSON (for tact-vscode, tact-docs, Nujan & others) to .tmLanguage PLIST/XML (for Sublime)
  • Re-organize the current highlighting structure (of json file) to make it more suitable for tact-docs
@novusnota novusnota self-assigned this Apr 28, 2024
@novusnota novusnota added the bug Something isn't working or doesn't seem right label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant