Skip to content
Discussion options

You must be logged in to vote

Ok, it seems that you have the grammar around just fine. What it looks like is missing is a highlights.scm file. In $HELIX_RUNTIME/queries, make a directory called pioasm and in that directory, add a file called highlights.scm.

Writing highlight queries can be a bit tricky at first, but it's mostly just labeling the different parts with the appropriate names.
Here is tree-sitter's guide to writing these highlight queries.
Here is Helix's list of highlight names.
Lastly, here is the highlight queries we currently use for nasm which can be some inspiration for you.

Hopefully that gives you a direction to go in to get highlighting. Let me know if there's anything you need!

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@CalebLarsen
Comment options

@crabdancing
Comment options

Answer selected by crabdancing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants