From 7efacbc478c0409c30e96a29a05205b9b05f5f16 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 6 Aug 2019 17:27:18 -0400
Subject: [PATCH] doc: macro processor integer range with user-defined
 increment

---
 doc/manual/source/the-model-file.rst | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/doc/manual/source/the-model-file.rst b/doc/manual/source/the-model-file.rst
index edf8c5e53d..089262aa38 100644
--- a/doc/manual/source/the-model-file.rst
+++ b/doc/manual/source/the-model-file.rst
@@ -10359,15 +10359,18 @@ The following operators can be used on doubles:
     * Arithmetic operators: ``+, -, *, /, ^``
     * Comparison operators: ``<, >, <=, >=, ==, !=``
     * Logical operators: ``&&, ||, !``
-    * Integer ranges, using the following syntax:
+    * Integer ranges with an increment of ``1``:
       ``INTEGER1:INTEGER2`` (for example, ``1:4`` is equivalent to
-      integer array ``[1,2,3,4]``).
+      integer array ``[1, 2, 3, 4]``).
 
       .. versionchanged:: 4.6
          Previously, putting brackets around the arguments to the colon
-         operator (e.g. ``[1:4]``) had now effect. Now, ``[1:4]`` will create
+         operator (e.g. ``[1:4]``) had no effect. Now, ``[1:4]`` will create
          an array containing a single element, itself an array (i.e. it is
          equivalent to ``[ [1, 2, 3, 4] ]``)
+    * Integer ranges with user-defined increment:
+      ``INTEGER1:INTEGER2:INTEGER3`` (for example, ``6:-2.1:-1`` is equivalent to
+      integer array ``[6, 3.9, 1.8, -0.3]``).
     * Functions: ``max, min, mod, exp, log, log10, sin, cos, tan, asin, acos,
       atan, sqrt, cbrt, sign, floor, ceil, trunc, erf, erfc, gamma, lgamma,
       round, normpdf, normcdf``. NB ``ln`` can be used instead of ``log``
-- 
GitLab