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

Runnables, injections and minor improvements #15

Merged
merged 6 commits into from
Nov 6, 2024
Merged

Conversation

tigormal
Copy link
Contributor

@tigormal tigormal commented Nov 2, 2024

Foreword

Things should probably be better tested. I have noticed some bugs occur at random times, but could not reproduce them, and it could've been on the side of Zed itself too.

Runnables

Added support for play button in:

  1. when isMainModule: sections
  2. suite and test macros for unit tests

Unit test runnables support running suites, separate single tests and single test within suites. Works with default unittest and unittest2 modules.

0

Injections

Fixed language name capture for emits and Assembly, added Markdown injection for md"..." generalized strings.

Before After
2 1

Note:
Zed should have a corresponding language extension installed for syntax highlighting to work: SQL, Assembly, GLSL and others.
As of now (02.11.2024), there is no language extensions for Objective-C, hence there is no syntax highlighting for it. If such extension appears, it in theory should work as-is (if it has objc language ID).

Other stuff

  • Added .nims file extension for NimScript files.
  • Added auto-close and bracket handling for pragmas (probably not in the best way, but it works)
    3

Edit:
Resolves #3.
Screenshot 2024-11-03 at 00 41 24

@tigormal
Copy link
Contributor Author

tigormal commented Nov 2, 2024

Also, with the current functionality, maybe it is time to update the version to 0.1.0, and not 0.0.6? A lot of other language extensions do not have runnables support, and other basic features are already there

@foxoman
Copy link
Owner

foxoman commented Nov 6, 2024

Thank you very much, appreciate all your support, you are the star of this project.

With your support I will follow your recomndation to update to 0.1.0

@foxoman foxoman merged commit 5cbd177 into foxoman:main Nov 6, 2024
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.

Loss of Syntax Highlighting with Nim String Interpolation
2 participants