Page 1 of 1

Nested comment blocks using /* */

Posted: 06 Dec 2018, 15:56
by Relayer
I have noticed that AHK doesn't handle comment blocks in the same way it handles other opening/closing punctuation like parentheses and brackets. In other words, it seems not to count the occurrence of opening '/*' and consider everything a comment until encountering an equal number of '*/". I often use this notation to mark documentation within my code. If I then want to comment out a large block of code containing other comment blocks, I need to go back and change the comments to use only semicolons. The parser seems to close the comment block as soon as it encounters the first '*/'.

Relayer