Thank you for the latest PSPad version.
It already improved a lot in the code explorer.
And also the improved INI and DEF file will help other users of AHK.
I do have some questions though:
[tested with PSPad 4.6.0 (2658)]
1) With the test code I send you earlier, the current code explorer shows a few
false positives
Line 119: LV_Delete()
Line 120: LV_Add()
Line 121: FuncCall8()
Line 122: FuncCall9()
All are pure function calls and not function definitions. (they are missing a
"{") Is there a chance that you can eliminate these false positives?
Would it help if I provide RegEx for this?
2) Function and Method Definitions with the parameters broken down over several
lines, do not show in the code explorer
Line 140: MultilineFuncDef(Param1 ; with comment
Line 141: , Param2
Line 142: , Byref Param3)
Line 143: {
and
Line 146: OTBMultilineFuncDef(Param1
Line 147: , Param2
Line 148: , Param3){ ;comment
and
Line 207: MultilineMethod(Param1
Line 208: , Param2
Line 209: , Param3) {
Is there any chance these can be recognized and shown in the code explorer?
Would it help if I provide RegEx for this?
3) The AutoHotkey.INI file has some differences in the [Settings] sections to
the file that I send you.
a) IndentChar and UnIndentChar are not set, they should be "{" and "}"
b) TabWidth is zero, and should be 2
c) SingleQuote is set to 1, but should be zero, since single quotes are not used
to identify quoted strings in AHK
d) KeyWordChars is set to "-_#". In AHK variable names are allowed to have
"_$@#" in them, but no "-". The internal variables only use a "_". Directives
use a "#" as their first character. To allow the syntax highlight to work on
directives KeyWordChars should be "_$@". Since this this setting also has an
influence on how Labels are highlighted I would reduce it to "_", because Labels
with e.g. a "$" in them do not show up in the code explorer but would get the
syntax highlight of a Label when "$" is in KeyWordChars.
e) DocComment is not set at all.
Is there a reason you set a), b), c) and d) differently to my file?
I like the way you implemented the classes into the code explorer. Thanks a
lot.
PS: If I should provide RegEx for 1) and 2), please let me know in which
'dialect' of RegEx and maybe with your currect RegEx Needle you are using as an
example to start from.
Again Thanks a lot for the updates so far.
--
Ciao
toralf
<http://forum.pspad.com/read.php?2,64779,64878>
PSPad freeware editor http://www.pspad.com