| ... | @@ -1269,12 +1269,14 @@ Happy writing! | ... | @@ -1269,12 +1269,14 @@ Happy writing! |
| 1269 | result = `<span class="zig_special">${src}</span>`; | 1269 | result = `<span class="zig_special">${src}</span>`; |
| 1270 | } else if (t.tag == Tag.identifier && t.fnDecl) { | 1270 | } else if (t.tag == Tag.identifier && t.fnDecl) { |
| 1271 | result = `<span class="zig_fn">${src}</span>`; | 1271 | result = `<span class="zig_fn">${src}</span>`; |
| | 1272 | } else if (t.tag == Tag.identifier && t.isDecl) { |
| | 1273 | result = `<span class="zig_decl_identifier">${src}</span>`; |
| 1272 | } else { | 1274 | } else { |
| 1273 | result = `<span class="zig_${t.tag}">${src}</span>`; | 1275 | result = `<span class="zig_${t.tag}">${src}</span>`; |
| 1274 | } | 1276 | } |
| 1275 | | 1277 | |
| 1276 | if (t.link) { | 1278 | if (t.link) { |
| 1277 | result = `<a href="${t.link}">` + result + "</a>"; | 1279 | result = `<a class="zighref="${t.link}">` + result + "</a>"; |
| 1278 | } | 1280 | } |
| 1279 | | 1281 | |
| 1280 | return result; | 1282 | return result; |
| ... | @@ -1316,9 +1318,9 @@ Happy writing! | ... | @@ -1316,9 +1318,9 @@ Happy writing! |
| 1316 | const name = getDecl(expr.declRef).name; | 1318 | const name = getDecl(expr.declRef).name; |
| 1317 | const link = declLinkOrSrcLink(expr.declRef); | 1319 | const link = declLinkOrSrcLink(expr.declRef); |
| 1318 | if (link) { | 1320 | if (link) { |
| 1319 | yield { src: name, tag: Tag.identifier, link }; | 1321 | yield { src: name, tag: Tag.identifier, isDecl: true, link }; |
| 1320 | } else { | 1322 | } else { |
| 1321 | yield { src: name, tag: Tag.identifier }; | 1323 | yield { src: name, tag: Tag.identifier, isDecl: true }; |
| 1322 | } | 1324 | } |
| 1323 | return; | 1325 | return; |
| 1324 | } | 1326 | } |