Update Documentation - Syntax Flexibility.
@@ -194,6 +194,7 @@ File : UseStyleBasic.ring
.. note:: Using this feature you can create many styles that you can use in the same project and you can support Ring translation to other languages like Arabic, French and so on.
+.. tip:: The effect of LoadSyntax command is related to the current source code file only.
Using "()" around the function parameters
=========================================
@@ -613,3 +614,24 @@ Example:
end
end
+.. index::
+ pair: Syntax Flexibility; Using 'endpackage'/'endclass'/'endfunc' keywords after Packages/Classes/Functions
+
+Using 'endpackage'/'endclass'/'endfunc' keywords after Packages/Classes/Functions
+=================================================================================
+
+Example:
+
+.. code-block:: ring
+
+ import mypackage
+
+ new myclass { myfunc() }
+
+ package mypackage
+ class myclass
+ func myfunc
+ see "welcome" + nl
+ endfunc
+ endclass
+ endpackage
\ No newline at end of file
