Merge pull request #6583 from acemod/sqf_validator-findIf

sqf_validator compatibility with findIf command
This commit is contained in:
commy2 2018-09-19 01:52:45 +02:00 committed by GitHub
commit 8587da58cb
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))