Skip to content

Commit 06805c7

Browse files
committed
Updated description of out in the EGL docs
Signed-off-by: Dimitris Kolovos <[email protected]>
1 parent 45a205e commit 06805c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkdocs/docs/doc/egl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,13 @@ The co-ordination engine provided by EGL facilitates the construction of modular
282282

283283
EGL provides language constructs that allow M2T transformations to designate regions of generated text as *protected*. Whenever an EGL program attempts to generate text, any protected regions that are encountered in the specified destination are preserved.
284284

285-
Within an EGL program, protected regions are specified with the *preserve(String, String, String, Boolean, String)* method on the `out` keyword. The first two parameters define the comment delimiters of the target language. The other parameters provide the name, enable-state and content of the protected region, as illustrated in the listing below.
285+
Within an EGL program, protected regions are specified with the *preserve(String, String, String, Boolean, String)* method on the `out` built-in variable. The first two parameters define the comment delimiters of the target language. The other parameters provide the name, enable-state and content of the protected region, as illustrated in the listing below.
286286

287287
```egl
288288
[%=out.preserve("/*", "*/", "anId", true, "System.out.println(foo);")%]
289289
```
290290

291-
A protected region declaration may have many lines, and use many EGL variables in the contents definition. To enhance readability, EGL provides two additional methods on the `out` keyword: *startPreserve(String, String, String, Boolean)* and `stopPreserve`. The listing below uses these to generate a protected region.
291+
A protected region declaration may have many lines, and use many EGL variables in the contents definition. To enhance readability, EGL provides two additional methods on the `out` built-in variable: *startPreserve(String, String, String, Boolean)* and `stopPreserve`. The listing below uses these to generate a protected region.
292292

293293
```egl
294294
[%=out.startPreserve("/*", "*/", "anId", true)%]

0 commit comments

Comments
 (0)