diff options
Diffstat (limited to 'Compiler/src/compiler.cpp')
-rw-r--r-- | Compiler/src/compiler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Compiler/src/compiler.cpp b/Compiler/src/compiler.cpp index fd45e78..7571fc2 100644 --- a/Compiler/src/compiler.cpp +++ b/Compiler/src/compiler.cpp @@ -1,12 +1,13 @@ #include "../includes/compiler.hpp" #include <regex> +static const unsigned short N_ITEMS = 4; /* Encoded regexes using the Type enum (convert to integer) */ static const std::regex REGEXES[] = { - std::regex("\\*(.*?)\\*"), std::regex("\\*\\*(.*?)\\*\\*"), - std::regex("_(.*?)_"), std::regex("~(.*?)~"), std::regex("-(.*)")}; + std::regex("\\*\\*(.*?)\\*\\*"), std::regex("\\*(.*?)\\*"), + std::regex("_(.*?)_"), std::regex("~(.*?)~")}; /* Encoded replacement strings using the Type enum (convert to integer) */ -static const char *REPLACEMENTS[] = {"<i>$1</i>", "<strong>$1</strong>", - "<u>$1</u>", "<s>$1</s>", "<li>$1</li>"}; +static const char *REPLACEMENTS[] = {"<strong>$1</strong>", "<i>$1</i>", + "<u>$1</u>", "<s>$1</s>"}; |