mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 23:02:28 +01:00
To mark up a feature reference in a comment, it is also possible to surround the name with 2 single back quotes
Updated wikipage Eiffel Code Comments. (Signed-off-by:jocelyn). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2126 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
[[Property:modification_date|Thu, 03 Jan 2019 18:00:43 GMT]]
|
||||||
|
[[Property:publication_date|Thu, 03 Jan 2019 18:00:43 GMT]]
|
||||||
[[Property:uuid|146E241E-C367-4F16-9CCE-6F11E5F7860A]]
|
[[Property:uuid|146E241E-C367-4F16-9CCE-6F11E5F7860A]]
|
||||||
[[Property:weight|1]]
|
[[Property:weight|1]]
|
||||||
[[Property:title|Eiffel Code Comments]]
|
[[Property:title|Eiffel Code Comments]]
|
||||||
@@ -8,22 +10,29 @@ The Eiffel compiler and EiffelStudio's code browsing tools support a special, li
|
|||||||
===Syntax===
|
===Syntax===
|
||||||
The syntax for marking up classes and features is very compact, to ensure retained legibility. You'll see no need for XML or other types of verbose mark up found in other languages, which can impede the comment's very nature as a quick reference.
|
The syntax for marking up classes and features is very compact, to ensure retained legibility. You'll see no need for XML or other types of verbose mark up found in other languages, which can impede the comment's very nature as a quick reference.
|
||||||
|
|
||||||
To mark up a class reference, surround the class name in an open ('''{''') and matching closing ('''}''') brace:
|
To mark up a class reference, surround the class name in an open (` { `) and matching closing (` } `) brace:
|
||||||
|
|
||||||
<e>
|
<e>
|
||||||
-- See {DEBUG_OUTPUT} for more information.
|
-- See {DEBUG_OUTPUT} for more information.
|
||||||
</e>
|
</e>
|
||||||
|
|
||||||
To mark up a feature reference, implemented in the same class or parent, surround the feature name in a single back quote (`) and a matching closing single quote ('):
|
To mark up a feature reference, implemented in the same class or parent, surround the name with two single back quotes (`` `...` ``), or in a single back quote and a matching closing single quote (`` `...' ``):
|
||||||
|
|
||||||
<e>
|
<e>
|
||||||
-- See `debug_output' for more information.
|
-- See `debug_output` for more information.
|
||||||
</e>
|
</e>
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
<e>
|
||||||
|
-- See `debug_output' for more information.
|
||||||
|
</e>
|
||||||
|
|
||||||
|
|
||||||
In the case where a reference to a feature is not accessible to the containing class directly, use a combination of the class reference mark up and a feature name, ''sans'' quotation marks:
|
In the case where a reference to a feature is not accessible to the containing class directly, use a combination of the class reference mark up and a feature name, ''sans'' quotation marks:
|
||||||
|
|
||||||
<e>
|
<e>
|
||||||
-- See {DEBUG_OUTPUT}.debug_output for more information.
|
-- See {DEBUG_OUTPUT}.debug_output for more information.
|
||||||
</e>
|
</e>
|
||||||
|
|
||||||
The rules that apply for comments, as described above, can also be utilized in any manifest or verbatim string:
|
The rules that apply for comments, as described above, can also be utilized in any manifest or verbatim string:
|
||||||
@@ -49,8 +58,8 @@ feature -- Query
|
|||||||
test (a_arg: INTEGER): BOOLEAN
|
test (a_arg: INTEGER): BOOLEAN
|
||||||
-- Comments for a feature.
|
-- Comments for a feature.
|
||||||
--
|
--
|
||||||
-- `a_arg': An integer value.
|
-- `a_arg`: An integer value.
|
||||||
-- `Result': Could be True or False.
|
-- `Result`: Could be True or False.
|
||||||
deferred
|
deferred
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -99,8 +108,8 @@ Using the code browsing facilities of [[EiffelStudio]] the reader will be presen
|
|||||||
--
|
--
|
||||||
-- Comments for a feature.
|
-- Comments for a feature.
|
||||||
--
|
--
|
||||||
-- `a_arg': An integer value.
|
-- `a_arg`: An integer value.
|
||||||
-- `Result': Could be True or False.
|
-- `Result`: Could be True or False.
|
||||||
--
|
--
|
||||||
-- Some additional comments.
|
-- Some additional comments.
|
||||||
</e>
|
</e>
|
||||||
@@ -111,8 +120,8 @@ For clarity it is a good idea to separate the agumented comments from the precur
|
|||||||
-- Comments before the original comments from {BASE}.
|
-- Comments before the original comments from {BASE}.
|
||||||
-- Comments for a feature.
|
-- Comments for a feature.
|
||||||
--
|
--
|
||||||
-- `a_arg': An integer value.
|
-- `a_arg`: An integer value.
|
||||||
-- `Result': Could be True or False.
|
-- `Result`: Could be True or False.
|
||||||
-- Some additional comments.
|
-- Some additional comments.
|
||||||
</e>
|
</e>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user