Closed Aebian closed 7 years ago
I'm not going to be adding support for custom operators because it doesn't really make sense; if an operator is allowed in header files, the grammar should allow it and similarly, if an operator isn't allowed, the grammar should have an error. There is no custom operators in header files.
I added support for +=
for header files, but I tested the operator with non-arrays and it didn't appear to work. So, +=
will only work for header array assignments (arr[] += {0}
)
Fixed in commit 75026d8
There is actually a BIS article about this. https://community.bistudio.com/wiki/Array%2B%3D
fixed in releaes 1.0.8
Plugin Version
1.0.7
Summary
Possibility to add custom operators in config files
Detail
Hi, nice plugin I like it. The only thing I would like to see is the following:
Currently me and my group have a custom written loadout system with configs. In that particular we have an operator += that is allowed in our .cpp and therefore works. The plugin although marks this operator as an error as it does not know that it's legit there.
As an example:
We have a base class for e.g.
Now I want another soldier to have more medicine. If I would type just an equal sign = I would override the base class. Instead I type += so the items are getting added and not replaced.
So I'm seeking for an option to define custom operators that are valid either plugin wide or for specific files / folders.
Thanks,
A/