Generate syntax highlighting files #466
Replies: 3 comments 4 replies
-
That's an interesting idea. What does such a file look like? My initial thought is that this will be a fairly large add-on to pyparsing, and probably deserving of being its own separate project. |
Beta Was this translation helpful? Give feedback.
-
Is there a pyparsing parser that you have hand-written the syntax highlighting for? Some of your examples seem to follow a common style of Javascript - is there a standard for this? |
Beta Was this translation helpful? Give feedback.
-
I agree, this sounds like an interesting project, but I have no bandwidth to give it at this time. At one time in the past, I think the pygments project used pyparsing to crack Python code. They may have switched to another parser framework (or I may just have misremembered that this ever was the case). It would be very helpful if you wrote a small parser and the corresponding syntax highlighting code for one of these environments, and attach both to this discussion thread. Or take one of the parsers in the pyparsing examples directory and write a syntax highlighter for it. I don't guarantee that I (or anyone) will pick up the project after you do this, but you might gain some insights for yourself in the process. |
Beta Was this translation helpful? Give feedback.
-
After you create a parser then you have write syntax highlighting files to syntax highlight the language your parser parses. When doing changes to the parser you manually have to update these files.
It would be good if you could generate such syntax highlight files for:
Beta Was this translation helpful? Give feedback.
All reactions