pugjs/pug

Official and maintained Grammar definition file

開放

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

 (6 則留言) (12 個反應) (0 位負責人)JavaScript (1,955 個分叉)batch import
Good First Issue

倉庫指標

星標
 (21,509 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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?

❤️

貢獻者指南