Harmonizing expressions for syntax highlighting

First ... It would be possible to do a simple syntax highlighting with PEG.

I'm only looking for it to be able to recognize and highlight the main things that are common to c style languages

Second ... If there are examples of this or something similar, please let me know

Thirdly ... If I go about it wrong, and there are more common and proven ways to do this, then let me know

+6
source share

Source: https://habr.com/ru/post/955519/


All Articles