Changeset View
Changeset View
Standalone View
Standalone View
src/lib/rule_p.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 78 | private: | |||
---|---|---|---|---|---|
83 | ContextSwitch m_context; | 83 | ContextSwitch m_context; | ||
84 | QVector<Rule::Ptr> m_subRules; | 84 | QVector<Rule::Ptr> m_subRules; | ||
85 | int m_column = -1; | 85 | int m_column = -1; | ||
86 | FoldingRegion m_beginRegion; | 86 | FoldingRegion m_beginRegion; | ||
87 | FoldingRegion m_endRegion; | 87 | FoldingRegion m_endRegion; | ||
88 | bool m_firstNonSpace = false; | 88 | bool m_firstNonSpace = false; | ||
89 | bool m_lookAhead = false; | 89 | bool m_lookAhead = false; | ||
90 | bool m_dynamic = false; | 90 | bool m_dynamic = false; | ||
91 | | ||||
92 | // cache for DefinitionData::wordDelimiters, is accessed VERY often | ||||
93 | QStringRef m_wordDelimiter; | ||||
91 | }; | 94 | }; | ||
92 | 95 | | |||
93 | 96 | | |||
94 | class AnyChar : public Rule | 97 | class AnyChar : public Rule | ||
95 | { | 98 | { | ||
96 | protected: | 99 | protected: | ||
97 | bool doLoad(QXmlStreamReader & reader) override; | 100 | bool doLoad(QXmlStreamReader & reader) override; | ||
98 | MatchResult doMatch(const QString & text, int offset, const QStringList&) override; | 101 | MatchResult doMatch(const QString & text, int offset, const QStringList&) override; | ||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |