diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2010-12-04 22:04:54 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2010-12-04 22:04:54 +0100 |
| commit | 753d309d6b51ef2f3dc13f93dbc8942ce80df57a (patch) | |
| tree | b046684700fcaf40ce5558101f45436f1c9d0eba /src/parser | |
| parent | 7d8e1295ff6bd4a768a658690b850d58aba01b0b (diff) | |
Alternate style text support added.
Diffstat (limited to 'src/parser')
| -rw-r--r-- | src/parser/text_p.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp index 4d44e66..3546f5b 100644 --- a/src/parser/text_p.cpp +++ b/src/parser/text_p.cpp @@ -23,9 +23,11 @@ text_p::text_p() : text_p::base_type(text_) { stext_ = lit("***") >> attr(VSEMPH) >> +text_ >> "***" | lit("**") >> attr(SEMPH) >> +text_ >> "**" - | lit('*') >> attr(EMPH) >> +text_ >> '*'; + | lit('*') >> attr(EMPH) >> +text_ >> '*' + | lit("''") >> attr(SALT) >> +text_ >> "''" + | lit('\'') >> attr(ALT) >> +text_ >> '\''; ptext_ = +(echar_ | rchar_); echar_ = lit('\\') >> char_; - rchar_ = char_ - char_(L"*"); + rchar_ = char_ - char_(L"*'"); } |
