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

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

[Octave-bug-tracker] [bug #52235] GUI: auto close "endcase" after typing


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #52235] GUI: auto close "endcase" after typing "case" keyword in smart indention feature, if enabled.
Date: Mon, 16 Oct 2017 10:14:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?52235>

                 Summary: GUI: auto close "endcase" after typing "case"
keyword in smart indention feature, if enabled.
                 Project: GNU Octave
            Submitted by: siko1056
            Submitted on: Mon 16 Oct 2017 04:14:34 PM CEST
                Category: GUI
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Thank you for that auto closing feature!  I just found a minor nuance, while
using the switch statement:


switch ...
  case
  endcase
endswitch


is not valid Octave syntax [1], but the auto complete suggests this while
typing, if that feature is enabled.

I think "case" has to be treated separately in regexp [2].

Kai.


[1]:
https://www.gnu.org/software/octave/doc/interpreter/The-switch-Statement.html

[2]:
http://hg.savannah.gnu.org/hgweb/octave/file/9fab3273ff26/libgui/src/m-editor/octave-qscintilla.cc#l451




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52235>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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