Re: [Scilab-users] ?==?utf-8?q? SciNotes and printf("...\n")

2019-04-12 Thread Antoine Monmayrant
Hello,

I've seen the same with scinotes in 6.0.2, I don't remember seeing this in 
previous version.
What occurs is that scinotes interprets two dots ".." as the continuation mark 
and stops coloring the rest of the line as string.
(if you separate the two consecutive dots, the coloring is back to something 
nice).

Cheers,

Antoine 
 
 
Le Vendredi, Avril 12, 2019 11:47 CEST, P M  a écrit: 
 
> Dear all,
> 
> what is the reason that SciNotes changes the colour from
> 
> printf(".\n");
> 
> to
> 
> printf("...\n");
> 
> In fact colour changes already when printing 2 dots.
> 
> Though there is no error, its a bit confusing, since SciNotes indicates
> that the leading quote sign is missing.
> 
> 
> I searched the SciNotes settings (scilab 6.0.2), but didn't find a setting
> that controls the appearance.
> 
> 
> Thanks,
> Philipp

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] ?==?utf-8?q? SciNotes and printf("...\n")

2019-04-13 Thread Federico Miyara


Antoine,

The continuation mark .. doesn't work within strings. Something like this

disp("Hello, ..
world")

produces an error (actually, two errors).

I think it would be relatively simple to fix this syntax-highlighting 
bug by just not letting that 2 dots trigger a change in syntax color 
highlighting within a string.


Indeed, as per the documentation (help dot) this seems to be the only 
valid use of .. other than at the end of a line or followed by a comment.


If one runs, for instance

a = [1 2 3 .. 4 5 6]

the Console enters in a mode expecting something more (> instead of 
-->), the same as in the case of a line with a for, but I don't succeed 
finding how to finish except cancelling with Ctrl-C.


Regards,

Federico Miyara


On 12/04/2019 14:39, Antoine Monmayrant wrote:

Hello,

I've seen the same with scinotes in 6.0.2, I don't remember seeing this in 
previous version.
What occurs is that scinotes interprets two dots ".." as the continuation mark 
and stops coloring the rest of the line as string.
(if you separate the two consecutive dots, the coloring is back to something 
nice).

Cheers,

Antoine
  
  
Le Vendredi, Avril 12, 2019 11:47 CEST, P M  a écrit:
  

Dear all,

what is the reason that SciNotes changes the colour from

printf(".\n");

to

printf("...\n");

In fact colour changes already when printing 2 dots.

Though there is no error, its a bit confusing, since SciNotes indicates
that the leading quote sign is missing.


I searched the SciNotes settings (scilab 6.0.2), but didn't find a setting
that controls the appearance.


Thanks,
Philipp

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users






---
El software de antivirus Avast ha analizado este correo electrónico en busca de 
virus.
https://www.avast.com/antivirus
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] ?==?utf-8?q? SciNotes and printf("...\n")

2019-04-15 Thread Samuel Gougeon

Hello Federico,

Le 13/04/2019 à 17:13, Federico Miyara a écrit :


Antoine,

The continuation mark .. doesn't work within strings. Something like this

disp("Hello, ..
world")

produces an error (actually, two errors).

I think it would be relatively simple to fix this syntax-highlighting 
bug by just not letting that 2 dots trigger a change in syntax color 
highlighting within a string.


Please do not hesitate to post a patch (on the bugzilla thread or on the 
CodeReview), if you have clear idea about how to fix this.


Regards
Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] ?==?utf-8?q? SciNotes and printf("...\n")

2019-04-15 Thread Federico Miyara


Samuel,

I'm not sure I can (I have already said I'm not fluent in C), but if you 
would kindly hint me how to locate, in general, the source code of a 
specific feature, may be I can in a future try to do something about it...


Regards,

Federico


On 15/04/2019 06:04, Samuel Gougeon wrote:

Hello Federico,

Le 13/04/2019 à 17:13, Federico Miyara a écrit :


Antoine,

The continuation mark .. doesn't work within strings. Something like this

disp("Hello, ..
world")

produces an error (actually, two errors).

I think it would be relatively simple to fix this syntax-highlighting 
bug by just not letting that 2 dots trigger a change in syntax color 
highlighting within a string.


Please do not hesitate to post a patch (on the bugzilla thread or on 
the CodeReview), if you have clear idea about how to fix this.


Regards
Samuel



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




---
El software de antivirus Avast ha analizado este correo electrónico en busca de 
virus.
https://www.avast.com/antivirus
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] ?==?utf-8?q? SciNotes and printf("...\n")

2019-04-15 Thread Samuel Gougeon

Le 15/04/2019 à 21:42, Federico Miyara a écrit :


Samuel,

I'm not sure I can (I have already said I'm not fluent in C), but if 
you would kindly hint me how to locate, in general, the source code of 
a specific feature, may be I can in a future try to do something about 
it...


Follow the bug's report, and you will get some hint in comments.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users