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

undefined-var highlighting has wrong positioning #24

Closed BangL closed 8 years ago

BangL commented 8 years ago

v1.0.5_1

as soon as i start using the "params" command, the highlighting indexes are getting shifted or something like that.

EDIT: ...the highlighting of unused params, to be more precise.

kayler-renslow commented 8 years ago

This is not useful information. Can you give me code to reproduce the issue?

BangL commented 8 years ago

nevermind, you already fixed this in 1.0.5_2 by using getNonQuoteRangeRelativeToElement instead of getNonQuoteRangeRelativeToFile. That was what i meant. sorry for my bad explanation. ;)

BangL commented 8 years ago

similar position-shifting of the highlighting still seem to happen in other cases, like "variable already declared private". version: 1.0.5_2

kayler-renslow commented 8 years ago

I can't fix this if you don't provide me an example of what's broken.

BangL commented 8 years ago

` private _alreadyDeclared = "hello"; private _alreadyDeclared = "world"; // broken: highlighting shifted private ["_alreadyDeclared"]; // This is making it even worse

private ["_alreadyDeclared2"]; // This is okay though private ["_alreadyDeclared2"];

private _alreadyDeclared2 = "heya"; // the last line actually breaks it as well, but it shifts out of range - so you cant see it.

// But if you add more text like... // blablablabla // ... here it is. ` http://250kb.de/u/160815/p/52JnuZcEkyym.png

kayler-renslow commented 8 years ago

fixed for 1.0.6