Grant Eagon  committed f4351e6 Draft

Better validation for use of the "in" keyword. Now ignores quoted strings.

  • Participants
  • Parent commits 2d94f34

Comments (0)

Files changed (2)

File Syntaxes/HTML (Liquid).tmLanguage

-					<!-- "in" used in logic tag [instead of contains] -->
+					<!-- "in" used in logic tag [instead of contains, not inside double quotes] -->
-						<string>(?&lt;=if|unless|elsif)[^%}]+[a-zA-Z0-9\-\w]+\s(in)\s[a-zA-Z0-9\-\w]+</string>
+						<string>(?&lt;=if|unless|elsif)[^%}]+[a-zA-Z0-9\-\w]+\s(in(?=([^'"]*['"][^'"]*['"])*[^'"]*$))\s[a-zA-Z0-9\-\w]+</string>
 					<!-- illegal equality test in logic tag [broken] -->

File Syntaxes/HTML (Liquid).tmLanguage.cache

Binary file modified.