mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
parent
4f27a70dd7
commit
70b2a28386
@ -417,6 +417,10 @@ void addLitExpression(NG &ng, unsigned index, const char *expression,
|
|||||||
"HS_FLAG_SOM_LEFTMOST are supported in literal API.");
|
"HS_FLAG_SOM_LEFTMOST are supported in literal API.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strcmp(expression, "")) {
|
||||||
|
throw CompileError("Pure literal API doesn't support empty string.");
|
||||||
|
}
|
||||||
|
|
||||||
// This expression must be a pure literal, we can build ue2_literal
|
// This expression must be a pure literal, we can build ue2_literal
|
||||||
// directly based on expression text.
|
// directly based on expression text.
|
||||||
ParsedLitExpression ple(index, expression, expLength, flags, id);
|
ParsedLitExpression ple(index, expression, expLength, flags, id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user