C#, Inno Script, Autohotkey lexers
for AHK lexer:
The function names must be followed immediately with (. So ex. the "if (true)" is not a function call.
https://i.imgur.com/dE4xPVX.png
			
			
									
						
										
						The function names must be followed immediately with (. So ex. the "if (true)" is not a function call.
https://i.imgur.com/dE4xPVX.png
Code: Select all
; missing the "#include" directive
#include abcfile.ahk
; multi line string
; the opening ( can follow some options, so it has not to be at the line end
; before both the opening ( and closing ) can be spaces/tabs
; it is comparable to "var = ..." and not "var := ..." 
x = 
(
   string
   more strings
   line
)
; function declaration for code tree
; there is no space between the function name and the opening (
; the opening { can be on the same line as the name
; the name does not have to be at the first column
xyz(a,b)
{
   ; ...
}
; class declaration for code tree
; the opening { can be on the same line as the name
; the name does not have to be at the first column
class abc
{
   ; ...
}
- 
				king.midas
 - Posts: 42
 - Joined: 26.02.2019 13:47
 
Hello!
In AHK lexer "empty parameters functions" does not add to code tree. Problem in CudaText and SynWrite
Sample:
https://i.imgur.com/WMlzp5v.png
			
			
									
						
										
						In AHK lexer "empty parameters functions" does not add to code tree. Problem in CudaText and SynWrite
Sample:
Code: Select all
func1(s) {}
func2() {}
- 
				uvviewsoft
 - Posts: 392
 - Joined: 01.12.2020 13:46
 
- 
				king.midas
 - Posts: 42
 - Joined: 26.02.2019 13:47
 
Thank you very match!
After update found another bug:
Function calls with next block "{}" shows in tree. Sample:
https://i.imgur.com/zHvjNy9.png
			
			
									
						
										
						After update found another bug:
Function calls with next block "{}" shows in tree. Sample:
Code: Select all
run_Editor()
{
    if ( IsWinVis(WinDesc) )
    {
        WinActivate, %WinDesc%
    }
    else if IsWinVis(WinDesc1)
    {
        WinActivate, %WinDesc%
    }
    else if WinExist(WinDesc)
    {
        WinRestore, %WinDesc% 
        ; WinShow, %WinDesc% 
        ; WinWait, %WinDesc%
        WinActivate, %WinDesc%
    }
    else
        Run("%PROGRAM_Editor%",,,,,1)
}