Armitxes / VSCode_SQF

Visual Studio Code ~ SQF Language plugin
https://armitxes.net/Projects/VSCodeSQF/
Other
48 stars 29 forks source link

Variables assigned from predicated counts highlighted as functions #47

Open mwpowellhtx opened 4 years ago

mwpowellhtx commented 4 years ago

They should be variables, not functions. Consider:

private _sectorCount = {
  (markerPos _x distance _estimatedPos) < KPLIB_logistics_incidentWindow_distance
} count _opforSectors;

Sees the curly braces {...} and assumes function. As contrasted with something like this, which is seen correctly as a variable assignment.

private _sectors = _opforSectors select {
  (markerPos _x distance _estimatedPos) < KPLIB_logistics_incidentWindow_distance
};