agda / agda

Agda is a dependently typed programming language / interactive theorem prover.

Home Page:https://wiki.portal.chalmers.se/agda/pmwiki.php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML backend: inconsistent highlighting for macro names

ncfavier opened this issue · comments

In generated HTML, macro names (for example, the 1lab's Regularity.reduce! macro) have class Function at definition site but Macro at use site (e.g. here). Also, there's no rule for .Macro in the default style sheet, so they end up having the browser's default colour for links. (fixed)

Reproducer:

open import Agda.Builtin.List
open import Agda.Builtin.Reflection
open import Agda.Builtin.Unit

macro
  bug : Term  TC ⊤
  bug h = unify h (quoteTerm tt)

_ = bug

I can't really tell how the highlighter works but this line looks suspicious as it discards the DefInfo containing defMacro:

A.FunDef _di x cs -> hl x <> hl cs