Reject empty swallow definitions

Empty swallow definitions don't make sense and can lead to crashes,
for that reason we reject them.

fixes #2099
This commit is contained in:
Ingo Bürk
2015-12-11 09:00:20 +01:00
parent 04be42f7cd
commit e3a5c004d3
3 changed files with 23 additions and 11 deletions

View File

@ -54,7 +54,7 @@ print $fh <<'EOT';
"percent": 1,
"swallows": [
{
// "class": "^URxvt$",
"class": "^URxvt$"
// "instance": "^urxvt$",
// "title": "^vals\\@w00t\\:\\ \\~$"
}
@ -119,7 +119,7 @@ print $fh <<'EOT';
"percent": 1,
"swallows": [
{
// "class": "^URxvt$",
"class": "^URxvt$"
// "instance": "^urxvt$",
// "title": "^vals\\@w00t\\:\\ \\~$"
}
@ -165,7 +165,7 @@ print $fh <<'EOT';
"percent": 1,
"swallows": [
{
// "class": "^URxvt$",
"class": "^URxvt$"
// "instance": "^urxvt$",
// "title": "^vals\\@w00t\\:\\ \\~$"
}
@ -213,7 +213,7 @@ print $fh <<'EOT';
"percent": 1,
"swallows": [
{
// "class": "^URxvt$",
"class": "^URxvt$"
// "instance": "^urxvt$",
// "title": "^vals\\@w00t\\:\\ \\~$"
}