Runnables, injections and minor improvements #15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
when isMainModule:
sectionssuite
andtest
macros for unit testsUnit test runnables support running suites, separate single tests and single test within suites. Works with default
unittest
and unittest2 modules.Injections
Fixed language name capture for emits and Assembly, added Markdown injection for
md"..."
generalized strings.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
.nims
file extension for NimScript files.Edit:
Resolves #3.