From c35fbebb5a570cb7ba1a0697099bf34d0719c82a Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 1 Mar 2019 22:53:38 +0100 Subject: [PATCH] Minor tweaks to PR #1309 --- website/monarch.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/monarch.html b/website/monarch.html index 5eb370d4..70a0582c 100644 --- a/website/monarch.html +++ b/website/monarch.html @@ -116,12 +116,12 @@

Creating a language definition

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

- +
ignoreCase
(optional=false, 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 cases construct.
- -
defaultToken
(optional="source", string) The default token returned if nothing matches in the tokenizer. It can be convenient to set this to "invalid" during development of your colorizer to easily spot what is not matched yet.
+ +
defaultToken
(optional="source", string) The default token returned if nothing matches in the tokenizer. It can be convenient to set this to "invalid" during development of your colorizer to easily spot what is not matched yet.
brackets
(optional, array of bracket definitions) This is used by the tokenizer to easily define matching braces. See @brackets and bracket for more information. Each bracket definition is an array of 3 elements, or object, describing the open brace, the close brace, and the token class. The default definition is:
     [ ['{','}','delimiter.curly'],
@@ -816,7 +816,7 @@ return {
 // 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‹int›) returns (sum: int, max: int)
+method M(N: int, a: array<int>) returns (sum: int, max: int)
   requires 0 <= N & a != null & a.Length == N;
   ensures sum <= N * max;
 {