bugGNU TeXmacs - Bugs: bug #47037, parse_number error in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47037: parse_number error in python_language.cpp

Submitted by:  Darcy Shen <sadhen>
Submitted on:  Mon 01 Feb 2016 11:54:22 AM UTC  
 
Category: EditorPriority: 5 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

Sun 19 Mar 2017 10:15:52 AM UTC, comment #2:

Applied in svn 10636. Many thanks.

Philippe Joyez <pjoyez>
Project Member
Thu 09 Jun 2016 07:16:06 AM UTC, comment #1:

In the original submission:

c should be s[i]

see: https://github.com/sadhen/texmacs/commit/7f814182e7b48e8cae66c06c0d80bbdf979efef1

Darcy Shen <sadhen>
Project Member
Mon 01 Feb 2016 11:54:22 AM UTC, original submission:

if you type

hello.l_is_not_a_number

then the .l_is_not_a_number part will be highlighted, while

hello.xxxxxx

xxxxxx will not be highlighted.

add
```
if (!is_number(c) &&
!(c == '.' && pos+1 < N(s) && is_number(s[pos+1])))
return;
i++;
```
under https://github.com/timy/texmacs/blob/master/src/System/Language/python_language.cpp#L505 will fix it.

I find this bug when hacking on this patch https://savannah.gnu.org/patch/?8899 for scala and R support. Hope it can be merged.

Darcy Shen <sadhen>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pjoyez (Posted a comment)
  • -unavailable- added by sadhen (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 19 Mar 2017 10:15:52 AM UTCpjoyezStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1