Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Add format macro syntax highlighting (closes #60) #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheEnigmaBlade
Copy link
Contributor

Highlights the special format syntax in the first string of a format/write/print macro as described here.

I used a single regular expression because the format grammar itself is regular, leaving the Atom grammar more localized. An expanded and annotated version can be found here.

The capture names might need a little adjustment since I don't write syntax highlighters much, but I tested it with a few syntax themes, some of which look good and others not so much.

Good

Bad

Ugly

@mehcode mehcode mentioned this pull request Sep 19, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants