Skip to content

Conversation

@AdamNorberg
Copy link

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.

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.
Fix Grey background, actually highlight tabs
Adopts patch in issue wh0am1-dev#9. Closes wh0am1-dev#9.
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