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

Non capital variable #3

Closed Windmolders closed 8 years ago

Windmolders commented 8 years ago

I noticed that functions are case sensitive:

But i know that they also work without cases what results in a syntax error for the plugin: eg

removebackpack player;
removeBackpack player;

The first one gives a error in the editor but works ingame to

Not sure if people want this or not. Open for debate ^.^

kayler-renslow commented 8 years ago

Commands are required to be camelCase. Even if it works in Arma, it will stay camel case.

kayler-renslow commented 8 years ago

In case you are wondering why, the lexer has to match close to 2,000 commands. If I were to allow commands to not be camel case, that is ~2,000 more rules. Besides the absolute useless amount of extra rules, it is harder to read commands that are not camel case in the SQF code than camel case ones.

Windmolders commented 8 years ago

@kayler-renslow No worries. I understand. Appreciate the work and plugin.

Good explanation to. Makes 100% sense.