allow for option names with underscores

This commit is contained in:
Doug Kearns
2007-09-28 13:28:16 +00:00
parent a2f048c32a
commit 378c8fcf20
+1 -1
View File
@@ -1027,7 +1027,7 @@ function Commands() //{{{
else
{
// 1 2 3 4 5 6
var matches = args.match(/^\s*(no|inv)?([a-z]+)([?&!])?(([+-])?=(.*))?/);
var matches = args.match(/^\s*(no|inv)?([a-z_]+)([?&!])?(([+-])?=(.*))?/);
if (!matches)
{
vimperator.echoerr("E518: Unknown option: " + args);