Skip to content

Commit 1f8a243

Browse files
committed
Updated Linter
Fixed a bug that caused assignment validation to incorrectly mark statements along the lines of `(Variable as Script).Property = Value` as invalid code due to the use of the `as` keyword.
1 parent a98c420 commit 1f8a243

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ Single file build system and a batch build variant.
228228
- SKSE mod event names
229229

230230
## **Changelog**
231+
**Version 2.7.1 - 2017/02/26:**
232+
233+
- **Skyrim**
234+
- Fixed a bug in the linter's assignment validation.
235+
231236
**Version 2.7.0 - 2017/01/27:**
232237

233238
- **Skyrim**

Source/Modules/Skyrim/Linter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def AssignmentValidator(self, node):
824824
elif node.type == self.NODE_ARRAYCREATION:
825825
pass
826826
elif node.type == self.NODE_BINARYOPERATOR:
827-
if node.data.operator.type == self.OP_DOT:
827+
if node.data.operator.type == self.OP_DOT or node.data.operator.type == self.KW_AS:
828828
self.AssignmentValidator(node.data.leftOperand)
829829
self.AssignmentValidator(node.data.rightOperand)
830830
else:

0 commit comments

Comments
 (0)