Sha256: 1a84b522fdd457b29807f7e285a9167843c1924f9329284281356dcfaaf6375b
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 Bytes
Contents
# p __FILE__ # Constants for parsing module Livetext::ParsingConstants SimpleFormats = {} SimpleFormats[:b] = %w[<b> </b>] SimpleFormats[:i] = %w[<i> </i>] SimpleFormats[:t] = ["<font size=+1><tt>", "</tt></font>"] SimpleFormats[:s] = %w[<strike> </strike>] BITS = SimpleFormats.keys Null = "" Space = " " Alpha = /[A-Za-z]/ AlNum = /[A-Za-z0-9_]/ LF = "\n" LBrack = "[" Blank = [" ", nil, "\n"] Punc = [")", ",", ".", " ", "\n"] NoAlpha = /[^A-Za-z0-9_]/ NoAlphaDot = /[^.A-Za-z0-9_]/ Param = ["]", "\n", nil] Escape = "\\" # not an ESC char Syms = { "*" => :b, "_" => :i, "`" => :t, "~" => :s } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
livetext-0.9.24 | lib/parsing.rb |
livetext-0.9.23 | lib/parsing.rb |