Armitxes / VSCode_SQF

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

Inconsistent highlighting of keywords such a objNull #48

Open mwpowellhtx opened 4 years ago

mwpowellhtx commented 4 years ago

Will illustrate, this is fine:

params [
    ["_test", objNull]
];

This is fine:

private _y = objNull;

However, this does not highlight correctly.

private _y = ... ;
// ...
_y = objNull;

Or:

private ["_y"];
// ...
_y = objNull;

The use case is, when the variable is defined through private in some other place, assignment later on is a legitimate thing to be able to do. But it is not highlighting correctly.

There are probably related cases to this one, I don't know.

Thank you!