octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60712] Editor : highlight statements that are


From: PIERRE LABRECHE
Subject: [Octave-bug-tracker] [bug #60712] Editor : highlight statements that are not terminated by semicolon
Date: Thu, 3 Jun 2021 10:25:58 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

Follow-up Comment #6, bug #60712 (project octave):

Actually there are two problems with this approach:
1. I don't expect a regular user to type a complex regexpr such as this ? 
Octave is used a lot in teaching environments for introductory programming. 
Even experts have difficulty in remembering the regexpr syntax after a while.

2. This regexpr has a lot of false finds, such as statements broken on
multiple lines, if and switch statements with their else and case clauses,
functions and endfunctions, classdefs and properties, ... and so on !

An editor feature to visualize statements that produce console output because
they are not terminated by a semicolon  would be very useful.



[comment #5 commentaire #5 :]
> You might find it useful to use the search tool in the editor (Ctrl+F), and
use regular expression matching to find lines with something like
"^[^#%].*[^;]$".

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60712>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]