Skip to content

Commit

Permalink
lib: Add short preprocessor aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
smondet committed Sep 6, 2010
1 parent f25af57 commit 665fe74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/dibrawi.ml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ module Preprocessor = struct

let prepro_regexp =
Pcre.regexp
"(\\#\\#|\\{(cite|cmt|mix:ignore|mix:code|mix:end)\\s*[^\\}]*\\})"
"(\\#\\#|\\{(cite|cmt|mix:ignore|mix:code|mix:end|mi|mc|me)\\s*[^\\}]*\\})"

let default_html_biblio_page = "page:/bibliography"

Expand Down Expand Up @@ -245,17 +245,17 @@ module Preprocessor = struct
| `wiki -> "##"
| `camlmix -> "### "
end
| "{mix:ignore}" ->
| "{mix:ignore}" | "{mi}" ->
begin match mix_output with
| `wiki -> "{ignore mixspecialend}"
| `camlmix -> "##"
end
| "{mix:code}" ->
| "{mix:code}" | "{mc}" ->
begin match mix_output with
| `wiki -> "{code mixspecialend}"
| `camlmix -> "##"
end
| "{mix:end}" ->
| "{mix:end}" | "{me}" ->
begin match mix_output with
| `wiki -> "{mixspecialend}"
| `camlmix -> "##"
Expand Down

0 comments on commit 665fe74

Please sign in to comment.