Makopo/lslint

Feature Request: OSSL, Error when have variable between 2 states, should not

Opened this issue · 2 comments

zaher commented

if we put variable between two states we will have error

C:\temp\bug.lsl::ERROR:: (  4, 16): `new' is undeclared.
C:\temp\bug.lsl::ERROR:: (  8,  1): syntax error, unexpected INTEGER, expecting end of file    
default{
	touch(integer num_detected)
	{
     	state new;
 	}
}

integer test;

state new{
	touch(integer num_detected)
	{
     	state default;
 	}
}
zaher commented

Thank you, because I did not work for SecondLife
It is not a bug, but I will leave it as feature request for some one can add it by add dialect name --ossl or using header of file

There is some language have dialect like FreePascal that I used right now to create my editor that use lslint.