Update for insertExt.ini to recognize Subroutine definition with comment on the same line as the subroutine name, for example: (This code snippet is from PicturePuzzle0.9a)
Code:
Auto-Solve: ; [ Auto-Solve ]
Loop, Parse, Coords, |
ControlMove,, % AGetF( A_LoopField,1,"-"), % AGetF( A_LoopField,2,"-"),
,, % "ahk_id " AGetF( cHwnds, A_Index )
WinSet, ReDraw,, ahk_ID %GuiID%
SB_SetText(" GAME OVER !!!!",1 ) , SB_SetText("`tTiles Left: 0",2 )
SetTimer, GameTimer, Off
Return
The above won't be recognized from the previous insertExt.ini, however, the new one will.
Code:
[Function List]
Show all functions=1
Sort by names=0
showCmd=0
[User Languages]
Count User Languages=1
Name 1=AHK Autohotkey
KeyWBodyBeg 1=
KeyWBodyEnd 1=
MatchCase 1=0
Count Comment 1=1
Count Syntax 1=4
Syntax P1.1.1=^
Syntax P2.1.1=\([^(]*\)
Syntax P3.1.1=[a-zA-Z0-9@?#\[\]_]+
Syntax P4.1.1={
Syntax P5.1.1=}
Syntax P6.1.1=$
Syntax P1.2.1=
Syntax P2.2.1=
Syntax P3.2.1=[#!^+&*~$ -=\[\]\\;',./A-Za-z0-9]+[:][:][ \t]*$
Syntax P4.2.1=
Syntax P5.2.1=
Syntax P6.2.1=
Syntax P1.3.1=^
Syntax P2.3.1=[ \t]*$
Syntax P3.3.1=[a-zA-Z0-9@?#\[\]_'-]+[:]
Syntax P4.3.1=
Syntax P5.3.1=^[r]eturn[ \t]*$
Syntax P6.3.1=$
Syntax P1.4.1=^
Syntax P2.4.1=[ \t]*[;].*$
Syntax P3.4.1=[a-zA-Z0-9@?#\[\]_'-]+[:]
Syntax P4.4.1=
Syntax P5.4.1=^[r]eturn[ \t]*$
Syntax P6.4.1=
Comment P1.1.1=/*
Comment P2.1.1=*/
[HEX-Editor]
Columns=16
Bits=1
Binary=0
Little=0
Capitel=0
Extensions=.exe .dll
Notice, this version of insertExt.ini still won't recognize comments following the return statement, for example:
Code:
Sub1:
; code blocks
Return ; end of subroutine
As a work around change the above to
Code:
Sub1:
; code blocks
Return
; end of subroutine
I have raised this issue with Notepad++ Function List Plugin author Jens, see
NPP Function List Plugin Forum, hope he can help me find a solution.
Cheers,
Mosaic