list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

Inline Comments

Use two slashes (//) or a hash (#) to place comments after any text on the line. The comment ends at the end of the line. Two slashes follow Java and C++ syntax; a hash follows Python and Ruby syntax.

Consecutive comment lines are preserved together in the generated documentation. Quotes and braces inside a comment are treated as comment text. A hash inside a quoted string remains part of the string.

The sequence #[ is reserved for native PHP attributes, such as #[Marker], and does not start an Umple comment. Paired hash markers around a name, such as #Type#, are reserved for trait type parameters in native code. A line comment in a method or code injection ends at the newline, so place the closing Umple brace on a separate line. To start a comment with a square bracket, insert a space: # [a comment].

Example

// Umple is both fun and efficient to develop with


      

Load the above code into classic UmpleOnline
Load the above code into UmpleOnline V2

 

Syntax


inlineComment- : // [**inlineComment]
    | [!hashCommentAhead:
  (?=#
  (?!\x5b
  )
  (?!\w+#
  )
  )] # [**inlineComment]