diff website/src/manual.html @ 1645:0af6a9d6d12f

minor - keywords
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Mar 2022 22:41:07 -0700
parents d3e61cd2aca0
children
line wrap: on
line diff
--- a/website/src/manual.html	Sat Jan 29 18:33:18 2022 -0700
+++ b/website/src/manual.html	Thu Mar 03 22:41:07 2022 -0700
@@ -5,6 +5,16 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<style>
 		@import "site.css";
+
+		p[keywords] {
+			font-family: monospace;
+			margin-left: 40px;
+			max-width: 700px;
+		}
+		p[keywords] span {
+			display: inline-block;
+			width: 100px;
+		}
 	</style>
 </head>
 <body>
@@ -530,13 +540,38 @@
 and cannot be used as names:
 
 
-<pre>
-     and       break     do        else      elseif    end
-     end_do    end_for   end_function        end_if    end_while
-     false     for       function  goto      if        in
-     local     nil       not       or        repeat    return
-     then      true      until     while
-</pre>
+<p keywords>
+	<span>and</span>
+	<span>break</span>
+	<span>catch</span>
+	<span>continue</span>
+	<span>do</span>
+	<span>else</span>
+	<span>elseif</span>
+	<span>end_do</span>
+	<span>end_for</span>
+	<span>end_function</span>
+	<span>end_if</span>
+	<span>end_try</span>
+	<span>end_while</span>
+	<span>false</span>
+	<span>finally</span>
+	<span>for</span>
+	<span>function</span>
+	<span>if</span>
+	<span>in</span>
+	<span>local</span>
+	<span>nil</span>
+	<span>not</span>
+	<span>or</span>
+	<span>repeat</span>
+	<span>return</span>
+	<span>then</span>
+	<span>true</span>
+	<span>try</span>
+	<span>until</span>
+	<span>while</span>
+</p>
 
 <p>
 Luan is a case-sensitive language:
@@ -952,7 +987,6 @@
 <b>while</b>, <b>repeat</b>, or <b>for</b> loop,
 skipping to the next statement after the loop:
 
-
 <pre>
 	stat ::= <b>break</b>
 </pre>
@@ -962,6 +996,16 @@
 
 
 <p>
+The <b>continue</b> statement jumps to the beginning of a
+<b>while</b>, <b>repeat</b>, or <b>for</b> loop for next iteration,
+skipping the execution of statements inside the body of loop for the current iteration:
+
+<pre>
+	stat ::= <b>continue</b>
+</pre>
+
+
+<p>
 The <b>return</b> statement is used to return values
 from a function or a chunk
 (which is an anonymous function).