Difference between revisions of "User talk:PROXiCiDE/SkyIndent.lua"
Jump to navigation
Jump to search
property block indent correction
imported>PROXiCiDE |
imported>Verteiron (property block indent correction) |
||
Line 7: | Line 7: | ||
--[[User:PROXiCiDE|PROXiCiDE]] 20:01, 17 February 2012 (EST) | --[[User:PROXiCiDE|PROXiCiDE]] 20:01, 17 February 2012 (EST) | ||
==Property Indent correction== | |||
Right now... | |||
Float Property Foo Auto | |||
...gets indented correctly but... | |||
Float Property Foo | |||
Bool Function get() | |||
Return _foo | |||
EndFunction | |||
Function set(Float newFoo) | |||
_foo = newFoo | |||
EndFunction | |||
EndProperty | |||
...does not: the interior of the Property block gets an indent stripped. I corrected this by moving "AutoReadOnly" and "Auto" to the IndentLeft group, and "Property" to the IndentRight group. This should indent Property lines unless nullified by an Auto or AutoReadOnly keyword, so Auto Properties don't get indented but non-auto Property blocks do. I don't know Lua, so I'm not sure whether this is the best way to correct it, but it seems to be working for me so far. |