Added the regexes headers
This commit is contained in:
parent
d4a1178233
commit
94851d3adf
1 changed files with 13 additions and 0 deletions
13
sfizz/Regexes.h
Normal file
13
sfizz/Regexes.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <regex>
|
||||
|
||||
namespace sfz
|
||||
{
|
||||
namespace Regexes
|
||||
{
|
||||
static std::regex includes { R"V(#include\s*"(.*?)".*$)V", std::regex::optimize };
|
||||
static std::regex defines { R"(#define\s*(\$[a-zA-Z0-9]+)\s+([a-zA-Z0-9]+)(?=\s|$))", std::regex::optimize };
|
||||
static std::regex headers { R"(<(.*?)>(.*?)(?=<|$))", std::regex::optimize };
|
||||
static std::regex members { R"(([a-zA-Z0-9_]+)=([a-zA-Z0-9-_#.&\/\s\\\(\),\*]+)(?![a-zA-Z0-9_]*=))", std::regex::optimize };
|
||||
static std::regex opcodeParameters { R"(([a-zA-Z0-9_]+?)([0-9]+)$)", std::regex::optimize };
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue