close
Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #19: italics.diff

File italics.diff, 725 bytes (added by Lorenz, 13 years ago)
  • htmlgen.go

     
    324324                                        result += `<small>`
    325325                                        style = `</small>`
    326326                                        s = ""
     327                                } else if k == "/" {
     328                                        s += "font-style:italic;"
    327329                                } else if k == "*" {
    328330                                        s += "font-weight:bold;"
    329331                                } else if k == "@" {
  • lexer.go

     
    231231                        }
    232232                        return Token_Enum, string(this.src[start:this.offset])
    233233                }
    234         case '_', '!', '?', '@':
     234        case '_', '!', '?', '@', '/':
    235235                if this.mode == mode_Style {
    236236                        c := this.ch
    237237                        this.next()