kayler-renslow / arma-intellij-plugin

A plugin for Intellij IDEA that allows for syntactical analysis, code inspections, and other nifty features for the SQF scripting language in Arma 3.
MIT License
41 stars 9 forks source link

Objectparent method syntax validation #19

Closed tomaytotomato closed 8 years ago

tomaytotomato commented 8 years ago

For a code block like this

//check if unit hit is vehicle, if so then exit
if (!isNull objectparent _unitHit) exitWith {};

Is throwing a false positive warning for syntax

Expected '(',')',':',';' got _variable instead

kayler-renslow commented 8 years ago

All commands are required to be camelCase. See https://github.com/kayler-renslow/arma-intellij-plugin/issues/3 for more info.

fix: if (!isNull objectParent _unitHit) exitWith {};