sqf_validator compatibility with findIf command

This commit is contained in:
commy2 2018-09-19 01:23:48 +02:00 committed by GitHub
parent 550acf6a2b
commit 7673ffab0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ import sys
import argparse
def validKeyWordAfterCode(content, index):
keyWords = ["for", "do", "count", "each", "forEach", "else", "and", "not", "isEqualTo", "in", "call", "spawn", "execVM", "catch", "param", "select", "apply"];
keyWords = ["for", "do", "count", "each", "forEach", "else", "and", "not", "isEqualTo", "in", "call", "spawn", "execVM", "catch", "param", "select", "apply", "findIf"];
for word in keyWords:
try:
subWord = content.index(word, index, index+len(word))