how to get all #include, containing subscripts #include

The popular SciTE-based AutoHotkey Script Editor
cgx5871
Posts: 319
Joined: 26 Jul 2018, 14:02

how to get all #include, containing subscripts #include

Post by cgx5871 » 10 Aug 2023, 13:44

I want to set up a jump function definition for Scite.
But there are #includes in the script, which may be scattered in different scripts.
So wondering, how to get all #include
For example, the picture below. How does it know which script is wrong and indicate the path?
image.png
image.png (17.08 KiB) Viewed 862 times

lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: how to get all #include, containing subscripts #include

Post by lexikos » 10 Aug 2023, 20:52

SciTE doesn't know anything. AutoHotkey knows at which line of which file it encountered the error, and prints it to StdErr due to the /ErrorStdOut command line switch (shown in your screenshot).

To get all #includes, you must do the same thing that AutoHotkey does; read and parse the file. Recognizing #include should be simple, but if you want to exclude multi-line comments and continuation sections, it is more complicated.

Post Reply

Return to “SciTE4AutoHotkey”