Commit ea767a4f authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.model: leading '_' is allowed for ids

parent b39be67c
......@@ -171,7 +171,7 @@ static bool idIsQmlKeyWord(const QString& id)
static bool idContainsWrongLetter(const QString& id)
{
static QRegExp idExpr(QLatin1String("[a-z][a-zA-Z0-9_]*"));
static QRegExp idExpr(QLatin1String("[a-z_][a-zA-Z0-9_]*"));
return !idExpr.exactMatch(id);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment