Thanks you all for the nice feedbacks I will of course update it to be even better with your help =)
Originally Posted by Dridzt
At a glance I noticed one thing present in my personal file that's missing.
Maybe you'd like to add it.
Near the top of the lua section after the /delimiters /function string lines
I have
Code:
/Open Fold Strings = "{" "function" "then" "else" "do" "until" "for" "while"
/Close Fold Strings = "}" "end" "else" "elseif"
/Open Comment Fold Strings = "<<"
/Close Comment Fold Strings = ">>"
This makes it so you can collapse blocks
(and comment blocks if you put '<<' and '>>' inside block section,
especially handy for big comment blocks containing license, documentation etc)
I also noticed in the keywords section there's 'UIParent'.
Any reason for it?
Another little detail, you could add
** -0 -1 -2 -3 -4 -5 -6 -7 -8 -9
as a substring to any of your Cx color code sections so that negative numbers are colored as well.
(I usually make an extra color code group just for that but I see you've used the 8 allowed)
Last little comment/question (sorry )
I see a
Code:
Block Comment On Alt = --
near the start.
Does that take care of the limitation in UEdit regarding block/line comments that start with the same substring?
To clarify, if you input the -- line comment, block comments break as UEdit
stops processing the after '--' and '[[' part is ignored hence doesn't understand
it's the beginning of a block comment instead treats it as a line comment.
If the alternate block comment definition solves that; neat trick!
If not I used to differentiate the 2 by making a
3 '-' instead of 2, it's still a valid lua line comment and I combine it with a macro
that I run on my .lua files replacing occurrences of '--' with '---' on first pass and then '---[[' with '--[[' (to restore block comments).
|
awesome dude I will work on all that, the option to open/close function is very awesome and helpful however I found a bug yet do you see why I'm unable to close the first function in this small test code
PHP Code:
function test:u()
for i, j in ipairs(a) do
local test
end
for i, j in ipairs(a) do
local test
end
end
With your script I can open close the second for loop but never the first one. I'm looking to find a patch but if you have one feel free to share =) Thanks again for the kind comments all, took me all day yesterday to revamp it
//EDIT: I think I have found the glitch, with "for" and "do" on the same line it is looking for 2x "end" statements and then breaking the open/close function, should be patchable that, will look closely the help file to check for possible workarounds