mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 05:35:36 +00:00
Add some code comments
This commit is contained in:
parent
1856c035f4
commit
a63bbbcfaf
@ -25,6 +25,8 @@
|
||||
const unsigned short default_campaignd_port = 15002;
|
||||
|
||||
namespace {
|
||||
// Markup characters recognized by GUI1 code. These must be
|
||||
// the same as the constants defined in marked-up_text.cpp.
|
||||
const std::string illegal_markup_chars = "*`~{^}|@#<&";
|
||||
|
||||
inline bool starts_with_text_markup_char(const std::string& str)
|
||||
|
@ -32,6 +32,10 @@
|
||||
|
||||
namespace font {
|
||||
|
||||
// NOTE: if you add more markup characters below, you'll need to update
|
||||
// the list in addon/validation.cpp to blacklist them for add-on names
|
||||
// and titles.
|
||||
|
||||
const char LARGE_TEXT='*', SMALL_TEXT='`',
|
||||
BOLD_TEXT='~', NORMAL_TEXT='{',
|
||||
NULL_MARKUP='^',
|
||||
|
Loading…
x
Reference in New Issue
Block a user