Skip to content

Commit

Permalink
Minor tweaks to PR #1309
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Mar 1, 2019
1 parent 4c2b07f commit c35fbeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/monarch.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ <h2>Monarch: create declarative syntax highlighters using JSON</h2>
<h2>Creating a language definition</h2>

<p>A language definition is basically just a JSON value describing various properties of your language. Recognized attributes are:</p>

<dl>
<dt>ignoreCase</dt><dd>(optional=<code>false</code>, boolean) Is the language case insensitive?. The regular expressions in the tokenizer use this to do case (in)sensitive matching, as well
as tests in the <code>cases</code> construct.</dd>
<dt>defaultToken</dt><dd>(optional=<code>"source"</code>, string) The default token returned if nothing matches in the tokenizer. It can be convenient to set this to <code>"invalid"</code> during development of your colorizer to easily spot what is not matched yet.</dd>

<dt>defaultToken</dt><dd>(optional=<code>"source"</code>, string) The default token returned if nothing matches in the tokenizer. It can be convenient to set this to <code>"invalid"</code> during development of your colorizer to easily spot what is not matched yet.</dd>
<dt id="brackets">brackets</dt><dd>(optional, array of bracket definitions) This is used by the tokenizer to easily define matching braces. See <a href="#@brackets"><code class="dt">@brackets</code></a> and <a href="#bracket"><code class="dt">bracket</code></a> for more information. Each bracket definition is an array of 3 elements, or object, describing the <code>open</code> brace, the <code>close</code> brace, and the <code>token</code> class. The default definition is:
<pre class="highlight">
[ ['{','}','delimiter.curly'],
Expand Down Expand Up @@ -816,7 +816,7 @@ <h2 id="htmlembed">&Uuml;ber Advanced: complex embeddings with dynamic end tags<
// Hint: Your program does not have to compute the sum and
// max of the array, despite the suggestive names of the
// out-parameters.
method M(N: int, a: array&lsaquo;int&rsaquo;) returns (sum: int, max: int)
method M(N: int, a: array&lt;int&gt;) returns (sum: int, max: int)
requires 0 &lt;= N &amp; a != null &amp; a.Length == N;
ensures sum &lt;= N * max;
{
Expand Down

0 comments on commit c35fbeb

Please sign in to comment.