pugjs/pug

Official and maintained Grammar definition file

Open

#2924 opened on Dec 12, 2017

View on GitHub
 (6 comments) (12 reactions) (0 assignees)JavaScript (21,509 stars) (1,955 forks)batch import
Good First Issue

Description

Every code editor I tried so far has incomplete or incorrect implementation of Pug syntax. Thus development with Pug lacks proper tooling, often breaks without a reason and is inefficient.

One way to solve this would be maintaining official grammar under pugjs organization. Like what for ex. TypeScript has. It will allow to join time of contributors together and maintain the single codebase.

The widely used format is the TextMate Language grammar .tmLanguage (which doesn't support context though). All these editors accepts it:

The next step would be to pick the best implementation, fix its issues and start from there.

Ideas, opinions?

❤️

Contributor guide