View Single Post
09-14-08, 04:38 AM   #5
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
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
Code:
Line Comment = ---
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).

Last edited by Dridzt : 09-14-08 at 04:53 AM.
  Reply With Quote