richardbann/pygments-lexer-babylon

Mix of ES6 and JSX code

Opened this issue · 0 comments

See the last block of highlighted code here: https://www.peterbe.com/plog/react-16.6-with-suspense-and-lazy-loading-components-with-react-router-dom

In that page, I had to use the builtin Javascript lexer in pygments. If I try to use pygments-lexer-babylon I get this:

screen shot 2019-02-06 at 10 23 17 am

By the way, I'm successfully using pygments-lexer-bablyon on a bunch of other snippets that is more just pure and simple JSX.