kach/nearley

Syntax highlight Nearley grammars on the website

Open

#351 aberto em 13 de fev. de 2018

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (254 forks)batch import
docshelp wanted

Métricas do repositório

Stars
 (3.456 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Since #350, nearley syntax isn't highlighted in the docs -- since we used to be (ab)using other syntaxes, such as js.

We need to do one of:

  • switch the highlighting engine to the same one that GitHub uses, which supports Nearley;
  • write a plugin for highlight.js that understands nearley syntax; or
  • patch our highlight-js integration, in docs/layouts/template.html, to interpret the ne language as something else (js perhaps?)

Guia do colaborador