1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 16:04:11 +01:00

Hint mode improvements.

This commit is contained in:
Kris Maglione
2010-10-08 22:54:34 -04:00
parent da7dcd59c1
commit f40ed2e734
4 changed files with 33 additions and 21 deletions

View File

@@ -232,9 +232,13 @@
<xsl:variable name="type" select="preceding-sibling::dactyl:type[1] | following-sibling::dactyl:type[1]"/>
<span dactyl:highlight="HelpDefault">(default:<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="starts-with($type, 'string') or starts-with($type, 'regex')">
<xsl:when test="$type = 'string'">
<span dactyl:highlight="HelpString"><xsl:apply-templates mode="help-1"/></span>
</xsl:when>
<xsl:when test="contains($type, 'list') or contains($type, 'map')">
<span dactyl:highlight="HelpString" delim=""><xsl:apply-templates mode="help-1"/></span>
<xsl:if test=". = ''">(empty)</xsl:if>
</xsl:when>
<xsl:otherwise>
<span>
<xsl:attribute name="dactyl:highlight">