Skip to content

Commit a5c7690

Browse files
committed
Add alternate include syntax
1 parent da5d50d commit a5c7690

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/extendscript-tools-features/preprocessor-directives.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ Preprocessor directives
44
=======================
55

66
ExtendScript provides preprocessor directives for including external scripts, naming scripts, specifying a
7-
JavaScript engine, and setting certain flags. Specify these with a C-style statement starting with the #
8-
character::
7+
JavaScript engine, and setting certain flags.
8+
9+
Specify these with either a C-style statement starting with the # character, or a comment followed by @::
910

1011
#include "file.jsxinc"
12+
//@include "file.jsxinc"
1113

1214
When a directive takes one or more arguments, and an argument contains any nonalphanumeric
1315
characters, the argument must be enclosed in single or double quotes. This is generally the case with
@@ -26,6 +28,7 @@ As a convention, use the file extension .jsxinc for JavaScript include files. Fo
2628
example::
2729

2830
#include "../include/lib.jsxinc"
31+
//@include "../include/file.jsxinc"
2932

3033
To set one or more paths for the #include statement to scan, use the ``#includepath``
3134
preprocessor directive.
@@ -49,6 +52,8 @@ For example::
4952

5053
#includepath "include;../include"
5154
#include "file.jsxinc"
55+
//@includepath "include;../include"
56+
//@include "file.jsxinc"
5257

5358
Multiple ``#includepath`` statements are allowed; the list of paths changes each time
5459
an ``#includepath`` statement is executed.

0 commit comments

Comments
 (0)