AutoHotkey Community

It is currently May 27th, 2012, 11:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: November 14th, 2005, 10:43 am 
Offline

Joined: January 30th, 2005, 11:18 pm
Posts: 133
Location: Darmstadt, Germany
Hi,

I discovered some minor bugs in the wordfile for UltraEdit:
- When using a dereferenced variable like
Code:
% myVar%index%
the following code is colored like it would be a string
- In the functions overview window, also lines like
Code:
LV_GetNext(...)
or similar are listed as functions
- speaking of UltraEdit 11.x, there is no folding for subroutines

I´m not a pro in regexp, so I would like to ask someone else to enhance the wordfile. *please!*

Thanks,
Rob


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2005, 11:14 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Hi RobOtter,

I'm not an expert as well, but since I played a bit with UltraEdit, I see no other way as using a ";%" at the end of the line to stop the wrong highlightning.

E.g.
Code:
MsgBox, % myVar%index% ;%
At least that the way I do it currently.

I do not know a way to avoid the LV_GetNext() or other functions to be listed in the function overview (if they are used in the code without an assignment). The function definitions should be listed correctly, right? But maybe someone can help here with the regex:
Code:
`%[^t ]++^([a-zA-Z0-9äöüß#_@^$^?^[^]]+(*)^)
The only way I can think of is to use a dummy assignment
Code:
void := LV_GetNext()
But is it so bad to have them listed as well?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2005, 11:18 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
As for the String
Code:
MsgBox, % myVar%index% ;%
you could as well remove the line or alter the line in your language file
Quote:
String Chars = %
to
Quote:
String Chars = "
The reason I used the % for strings is that I wanted to have an extra color for the vars. So I misused the string highlightning to highlight %vars%.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2005, 11:21 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
The regex
Quote:
`%[^t ]++^([a-zA-Z0-9äöüß#_@^$^?^[^]]+(*)^)
has to be alter, so that it is only true if in the next line which isn't a comment ";" line the first char is a "{".

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2005, 2:09 pm 
toralf wrote:
As for the String
Code:
MsgBox, % myVar%index% ;%
you could as well remove the line or alter the line in your language file
Quote:
String Chars = %
to
Quote:
String Chars = "
The reason I used the % for strings is that I wanted to have an extra color for the vars. So I misused the string highlightning to highlight %vars%.


At the moment, I´m also using the "comment" workaround for String highlighting, but it seems to be a good idea to change the character to ". I now have added % to the /C3"Variables" section so that my variables are at least embraced by colored % characters. I find that less disturbing than wrongly colored lines - and the comment workaround is quite irritating for other source code reviewers not using UE....


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2005, 2:16 pm 
Offline

Joined: January 30th, 2005, 11:18 pm
Posts: 133
Location: Darmstadt, Germany
toralf wrote:
The only way I can think of is to use a dummy assignment
Code:
void := LV_GetNext()
But is it so bad to have them listed as well?


Sorry, I was not logged in before, the anonymous message is mine.

I dislike the listing of methods together with functions since it does not provide a good overview. If you think of quite big sripts (like the genious activAid made by tekl), it really makes sense just to see the _real_ functions.

Best regards,
Rob


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2005, 4:44 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I will update teh UE script to have the " as string indicator and will recommend to add % to the Operators.txt and the comma "," to the Separators.txt.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group