From 90abf92486ac73f15399337d9df3a1c78caecbf2 Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Thu, 3 Jan 2019 18:00:43 +0000 Subject: [PATCH] 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 --- .../Eiffel-Code-Comments.wiki | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/documentation/18.11/eiffel/Coding_Standards/Eiffel-Code-Comments.wiki b/documentation/18.11/eiffel/Coding_Standards/Eiffel-Code-Comments.wiki index 2e33d9cc..930cd053 100644 --- a/documentation/18.11/eiffel/Coding_Standards/Eiffel-Code-Comments.wiki +++ b/documentation/18.11/eiffel/Coding_Standards/Eiffel-Code-Comments.wiki @@ -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:weight|1]] [[Property:title|Eiffel Code Comments]] @@ -8,22 +10,29 @@ The Eiffel compiler and EiffelStudio's code browsing tools support a special, li ===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. -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: --- See {DEBUG_OUTPUT} for more information. + -- See {DEBUG_OUTPUT} for more information. -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 (`` `...' ``): --- See `debug_output' for more information. + -- See `debug_output` for more information. +or + + + -- See `debug_output' for more information. + + + 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: --- See {DEBUG_OUTPUT}.debug_output for more information. + -- See {DEBUG_OUTPUT}.debug_output for more information. 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 -- Comments for a feature. -- - -- `a_arg': An integer value. - -- `Result': Could be True or False. + -- `a_arg`: An integer value. + -- `Result`: Could be True or False. deferred end @@ -99,8 +108,8 @@ Using the code browsing facilities of [[EiffelStudio]] the reader will be presen -- -- Comments for a feature. -- --- `a_arg': An integer value. --- `Result': Could be True or False. +-- `a_arg`: An integer value. +-- `Result`: Could be True or False. -- -- Some additional comments. @@ -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 for a feature. -- --- `a_arg': An integer value. --- `Result': Could be True or False. +-- `a_arg`: An integer value. +-- `Result`: Could be True or False. -- Some additional comments.