New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReGaHss: implement break/continue statements for while()/foreach() loops #224

Closed
jens-maus opened this Issue Dec 26, 2017 · 0 comments

Comments

1 participant
@jens-maus
Copy link
Owner

jens-maus commented Dec 26, 2017

To allow to programatically break or continue a while() or foreach() loop it could be quite handy to have a break or continue statement like in other script languages which allow to break a loop or immediately continue with the next iteration.

@jens-maus jens-maus added this to the next release milestone Dec 6, 2018

@jens-maus jens-maus moved this from To Do to In progress in ReGaHss improvements/fixes Dec 6, 2018

@jens-maus jens-maus moved this from In progress to Done in ReGaHss improvements/fixes Dec 7, 2018

@jens-maus jens-maus closed this Dec 7, 2018

eq-3-occu pushed a commit to eq-3/occu that referenced this issue Dec 12, 2018

Wolfgang Willinghöfer Wolfgang Willinghöfer
2018-12-08 Jens Maus <mail@jens-maus.de>
  * fixed string backslash unescaping routines to correctly unescape
    double backslash uses and thus allow to define e.g. \t by using
    a "\\t" string which were not possible before.

2018-12-07 Jens Maus <mail@jens-maus.de>

  * implemented missing 'break' and 'continue' statements to break out
    of while() and foreach() loops and to also continue with the next
    iteration like this is commonly performed in other script languages.
    This refs jens-maus/RaspberryMatic#224

2018-12-06 Jens Maus <mail@jens-maus.de>

  * fixed bug where elseif() within a while/foreach() loop didn't work as
    expected but was quiting the loop too early.
    This fixes jens-maus/RaspberryMatic#404

2018-12-05 Jens Maus <mail@jens-maus.de>

  * fixed webserver to only create and reserve a session ID in case a
    successfull user login is performed (either manual or autologin). This
    should prevent from Denial-of-Service (DoS) situations where certain
    internal service could send multiple web requests to identify if
    a http server is running and thus could eat up all available session
    slots ending up in "Zu viele gleichzeitige Verbindungen" errors.

    NOTE: This change requires that the file /www/rega/index.htm will
          contain a small change so that "SessionId" is not a mandatory
          variable anymore.

2018-11-27 Jens Maus <mail@jens-maus.de>

  * fixed http response to manage more than 800kb of response payload so
    that the internal web server of ReGaHss can manage way larger http
    response data. This should finally allow to, e.g. serve larger
    system variables http displays at Settings -> Systemvariables with
    e.g. ~1k of system variables or with longer device list web pages.

eq-3-occu pushed a commit to eq-3/occu that referenced this issue Dec 12, 2018

Wolfgang Willinghöfer Wolfgang Willinghöfer
2018-12-08 Jens Maus <mail@jens-maus.de>
  * fixed string backslash unescaping routines to correctly unescape
    double backslash uses and thus allow to define e.g. \t by using
    a "\\t" string which were not possible before.

2018-12-07 Jens Maus <mail@jens-maus.de>

  * implemented missing 'break' and 'continue' statements to break out
    of while() and foreach() loops and to also continue with the next
    iteration like this is commonly performed in other script languages.
    This refs jens-maus/RaspberryMatic#224

2018-12-06 Jens Maus <mail@jens-maus.de>

  * fixed bug where elseif() within a while/foreach() loop didn't work as
    expected but was quiting the loop too early.
    This fixes jens-maus/RaspberryMatic#404

2018-12-05 Jens Maus <mail@jens-maus.de>

  * fixed webserver to only create and reserve a session ID in case a
    successfull user login is performed (either manual or autologin). This
    should prevent from Denial-of-Service (DoS) situations where certain
    internal service could send multiple web requests to identify if
    a http server is running and thus could eat up all available session
    slots ending up in "Zu viele gleichzeitige Verbindungen" errors.

    NOTE: This change requires that the file /www/rega/index.htm will
          contain a small change so that "SessionId" is not a mandatory
          variable anymore.

2018-11-27 Jens Maus <mail@jens-maus.de>

  * fixed http response to manage more than 800kb of response payload so
    that the internal web server of ReGaHss can manage way larger http
    response data. This should finally allow to, e.g. serve larger
    system variables http displays at Settings -> Systemvariables with
    e.g. ~1k of system variables or with longer device list web pages.

jens-maus added a commit that referenced this issue Dec 13, 2018

add break and continue statements to rega specific syntax highlighting
rules now that we integrate the latest ReGa version bringing up these
statements for while/foreach loops. This refs #224.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment