bugGNU Octave - Bugs: bug #41224, GUI Editor should syntax-highlight...

 
 

bug #41224: GUI Editor should syntax-highlight test cases

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Mon 13 Jan 2014 09:07:25 PM UTC  
 
Category:  GUI Severity:  1 - Wish
Priority:  1 - Later Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Mon 02 Feb 2015 03:42:26 PM UTC, comment #8:

Okay, I lowered the Priority to "later". When Qscintilla has the required support, we can change Octave.

Rik <rik5>
Project Administrator
Mon 02 Feb 2015 11:19:06 AM UTC, comment #7:

Its currently not implemented in qscintilla or scintilla, so needs to be implemented in qscintilla

John Donoghue <lostbard>
Project Member
Mon 02 Feb 2015 04:33:43 AM UTC, comment #6:

Is the fix for this in upstream code with Qscintilla? Can Octave do anything, or should this report be closed?

Rik <rik5>
Project Administrator
Fri 17 Jan 2014 09:58:19 PM UTC, comment #5:

No, the octave lexer is used when it is available (since qscintilla 2.6 or so, not sure at the moment). When the snippet in comment #1 is changed such that the matlab lexer is used you see the default fonts from qscintilla and not the ones we have configured in the default settings file (there are no defaults for matlab). Obviously the lexer does not handle the ! correctly.

Geany is another editor based on scintilla and shows the same behavior.

Torsten <ttl>
Project Member
Fri 17 Jan 2014 09:26:16 PM UTC, comment #4:

how about !, the negation sign?
it seems the build is taking matlab's syntax highlighter,
see comment #1.
scitilla does offer octave separate from matlab:
<http://scintillanet.codeplex.com/wikipage?title=HowToSyntax>
finally, should this be split off as a separate bug report?

Felipe G. Nievinski <fgnievinski>
Fri 17 Jan 2014 09:03:25 PM UTC, comment #3:

Its not currently implemented in the lexer and will need to be pushed up to the qscintilla project to get it implemented.

John Donoghue <lostbard>
Project Member
Thu 16 Jan 2014 06:46:07 PM UTC, comment #2:

The matlab lexer shows the same behavior. It seems the %! case is missing in the lexers.

Torsten <ttl>
Project Member
Mon 13 Jan 2014 09:26:26 PM UTC, comment #1:

also "!" is ignored.

maybe it's caused by this:
c:\Octave\octave\libgui\src\m-editor\file-editor.cc:
#if defined (HAVE_QSCI_QSCILEXEROCTAVE_H)
#define HAVE_LEXER_OCTAVE
#include <Qsci/qscilexeroctave.h>
#elif defined (HAVE_QSCI_QSCILEXERMATLAB_H)
#define HAVE_LEXER_MATLAB
#include <Qsci/qscilexermatlab.h>
#endif

I'm using <http://www.openems.de/download/octave/octave-3.8.0.exe>

Felipe G. Nievinski <fgnievinski>
Mon 13 Jan 2014 09:07:25 PM UTC, original submission:

i.e., % starts a comment, %! does not

Felipe G. Nievinski <fgnievinski>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by fgnievinski (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-02 rik5 Priority3 - Low => 1 - Later
    2015-02-02 rik5 Severity3 - Normal => 1 - Wish
        Priority5 - Normal => 3 - Low

    Back to the top


    Powered by Savane 3.3