Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -258,7 +258,7 @@ bool SnippetsTableModel::isValidTrigger(const QString &s) ...@@ -258,7 +258,7 @@ bool SnippetsTableModel::isValidTrigger(const QString &s)
if (s.isEmpty()) if (s.isEmpty())
return false; return false;
for (int i = 0; i < s.length(); ++i) 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 false;
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment