Guido van Rossum wrote:
How easy are extensions like this to make? We might want to have one for the PEG grammar (if it goes through).
I don't think it's very hard. For instance, https://github.com/brettcannon/vscode-zephyr-asdl is what it takes to add syntax highlighting for ASDL. It pretty much is writing regexes to do accurate capturing of what you want to highlight and assigning semantic meaning. And if there is already an extension that highlights that file (or even Grammar) then if I ever get around to creating a python-dev extension it can associate the file appropriately even without a file extension (i.e. the extension says `Grammar/Grammar` is of type "EBNF"). And I will say I have a bunch of ideas on a python-dev extension for VS Code (most of which is configuration and thus not complicated; integrating Buildbot status is actually the only thing that would require a lot of coding), but as with most things it requires having the time to do it. :)
On Tue, Mar 3, 2020 at 6:44 PM Brett Cannon brett@python.org wrote:
https://marketplace.visualstudio.com/items?itemName=brettcannon.zephyr-asdl Basically syntax highlighting and automatic bracket matching for those that ever have to work with Python.asdl. If the number of direct installs of this extension breaks into double digits I will be a bit shocked. ;)
Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-leave@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ZPJN6NJP... Code of Conduct: http://python.org/psf/codeofconduct/ -- --Guido van Rossum (python.org/~guido) Pronouns: he/him **(why is my pronoun here?) http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...