ShellManager: Change the env var detection regex to find more uses

The regex is now just '\bkak_\w+\b', no need for it to be looking
like a shell variable use.

This allows other tools that the shell to access Kakoune vars as
long as the name appears directly in the shell string.
This commit is contained in:
Maxime Coste 2014-03-25 19:43:56 +00:00
parent 764e450fdd
commit 58b4e29e81

View File

@ -10,7 +10,7 @@
namespace Kakoune namespace Kakoune
{ {
static const Regex env_var_regex(R"(\$\{kak_(\w+)[^}]*\}|\$kak_(\w+))"); static const Regex env_var_regex(R"(\bkak_(\w+)\b)");
ShellManager::ShellManager() ShellManager::ShellManager()
{ {