mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 17:31:44 +03:00
Regex: reorder lookaround ops, group by direction
This commit is contained in:
parent
854144c535
commit
fabeab1ee1
@ -30,8 +30,8 @@ struct ParsedRegex
|
|||||||
SubjectEnd,
|
SubjectEnd,
|
||||||
ResetStart,
|
ResetStart,
|
||||||
LookAhead,
|
LookAhead,
|
||||||
LookBehind,
|
|
||||||
NegativeLookAhead,
|
NegativeLookAhead,
|
||||||
|
LookBehind,
|
||||||
NegativeLookBehind,
|
NegativeLookBehind,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -572,14 +572,14 @@ private:
|
|||||||
push_op(CompiledRegex::LookAhead);
|
push_op(CompiledRegex::LookAhead);
|
||||||
push_string(node->children);
|
push_string(node->children);
|
||||||
break;
|
break;
|
||||||
case ParsedRegex::LookBehind:
|
|
||||||
push_op(CompiledRegex::LookBehind);
|
|
||||||
push_string(node->children, true);
|
|
||||||
break;
|
|
||||||
case ParsedRegex::NegativeLookAhead:
|
case ParsedRegex::NegativeLookAhead:
|
||||||
push_op(CompiledRegex::NegativeLookAhead);
|
push_op(CompiledRegex::NegativeLookAhead);
|
||||||
push_string(node->children);
|
push_string(node->children);
|
||||||
break;
|
break;
|
||||||
|
case ParsedRegex::LookBehind:
|
||||||
|
push_op(CompiledRegex::LookBehind);
|
||||||
|
push_string(node->children, true);
|
||||||
|
break;
|
||||||
case ParsedRegex::NegativeLookBehind:
|
case ParsedRegex::NegativeLookBehind:
|
||||||
push_op(CompiledRegex::NegativeLookBehind);
|
push_op(CompiledRegex::NegativeLookBehind);
|
||||||
push_string(node->children, true);
|
push_string(node->children, true);
|
||||||
|
@ -30,8 +30,8 @@ struct CompiledRegex
|
|||||||
SubjectBegin,
|
SubjectBegin,
|
||||||
SubjectEnd,
|
SubjectEnd,
|
||||||
LookAhead,
|
LookAhead,
|
||||||
LookBehind,
|
|
||||||
NegativeLookAhead,
|
NegativeLookAhead,
|
||||||
|
LookBehind,
|
||||||
NegativeLookBehind,
|
NegativeLookBehind,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user