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