mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Markdown grammar improvements.
This commit is contained in:
@@ -42,6 +42,7 @@ struct EE_API SyntaxPattern {
|
||||
IsRootSelfInclude = 1 << 3,
|
||||
IsRangedMatch = 1 << 5,
|
||||
IsSourceInclude = 1 << 6,
|
||||
IsAutomaticallyAdded = 1 << 7,
|
||||
};
|
||||
|
||||
static SyntaxDefMap<SyntaxStyleType, std::string> SyntaxStyleTypeCache;
|
||||
@@ -108,6 +109,8 @@ struct EE_API SyntaxPattern {
|
||||
|
||||
inline bool isRangedMatch() const { return flags & Flags::IsRangedMatch; }
|
||||
|
||||
inline bool isAutomaticallyAdded() const { return flags & Flags::IsAutomaticallyAdded; }
|
||||
|
||||
inline bool isSimpleRangedMatch() const {
|
||||
return isRangedMatch() && !hasContentScope() && !hasSyntax();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user