\r
HashSet<Token> removes = new HashSet<Token>();\r
for(Token t : forIndices.keySet()) {\r
- boolean isFound = false;\r
+// boolean isFound = false;\r
for(Token rt : errors.keySet()) {\r
if(rt.image.equals(t.image)) {\r
- isFound = true;\r
+// isFound = true;\r
// remove range token from invalid ranges\r
removes.add(rt);\r
}\r
}\r
- if(!isFound) {\r
- SyntaxError error = new SyntaxError(t, "Invalid index");\r
- errors.put(t, error);\r
- }\r
+// Why would this be invalid if the index just is not used anywhere?\r
+// {1+2 for i in range} \r
+ \r
+// if(!isFound) {\r
+// SyntaxError error = new SyntaxError(t, "Invalid index"); \r
+// errors.put(t, error);\r
+// }\r
}\r
\r
for(Token t : removes)\r