Support Pico-8 0.2.25e syntax. Highlight additional elements. Draw sprites.#17
Open
AdamNorberg wants to merge 10 commits intowh0am1-dev:masterfrom
Open
Support Pico-8 0.2.25e syntax. Highlight additional elements. Draw sprites.#17AdamNorberg wants to merge 10 commits intowh0am1-dev:masterfrom
AdamNorberg wants to merge 10 commits intowh0am1-dev:masterfrom
Conversation
This updates the syntax file to Sublime Text 3 format, includes new APIs, and recognizes the `\` and `!=` operators.
This highlights the data region headers individually, and assigns a separate scope to each individual nybble of the sprite sheet and label, which can then be used to color these with the default Pico-8 palette in the theme.
All colors specified in the Pico-8 scheme are on one of the two Pico-8 palettes. I have named all P8 colors, including the secret palette colors that are not actually used in the scheme, for the convenience of future developers who want to tinker with this. The per-nybble colors for the sprite sheet and label are provided here, matching the highly specific scopes emitted by the syntax. Some redundant scopes were removed. All standard scopes listed in the Sublime Text 3 docs are now provided.
The only difference between PICO-8 and PICO-8 Grey is the background and line highlight color (0x5 and 0x85 respectively).
Also mentions the syntax highlighting change in the version update message.
Adopts patch in issue wh0am1-dev#9. Closes wh0am1-dev#9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This moves the theme and syntax files to Sublime Text 3 format because it's a lot more legible and the .tmtheme format doesn't support the same stateful context system. To diff, take your existing .tmtheme files and use Sublime Text's auto-conversion to see the equivalents.
This adds support for new Pico-8 0.2.25e features -- "new" relative to whatever version was last in the repo, at least -- which includes several library changes, bit math operators, etc.
This adds a separate syntax highlighting context to every individual character on the sprite sheet and label, with corresponding changes in the color scheme to make it "draw" the sprites and label! It also adds highlights for the -->8 "cut" comments that break the code segment into tabs, and for the segment headers themselves.
The default color scheme is, like Pico-8, now blue. If you want a gray-based scheme back, there's a file for that too.