Commit 18a98b92 authored by David Schulz's avatar David Schulz Committed by Tobias Hunger
Browse files

Editor: Adjust valid sippet trigger



Change-Id: I67ac9cf2b853e077f3b073100788530529efad2d
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 70dea6e5
......@@ -258,7 +258,7 @@ bool SnippetsTableModel::isValidTrigger(const QString &s)
if (s.isEmpty())
return false;
for (int i = 0; i < s.length(); ++i)
if (!s.at(i).isLetter())
if (!s.at(i).isLetter() && s.at(i) != QLatin1Char('_') && (!s.at(i).isDigit() || i == 0))
return false;
return true;
}
......
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