pugjs/pug

Official and maintained Grammar definition file

Open

#2,924 建立於 2017年12月12日

在 GitHub 查看
 (6 留言) (12 反應) (0 負責人)JavaScript (21,509 star) (1,955 fork)batch import
Good First Issue

描述

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?

❤️

貢獻者指南