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

Submitter:  Darcy Shen <sadhen>
Submitted:  Mon 01 Feb 2016 11:54:22 AM UTC
   
 
Category:  Editor Priority:  5 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

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

Applied in svn 10636. Many thanks.

Philippe Joyez <pjoyez>
Group Member
Thu 09 Jun 2016 07:16:06 AM UTC, comment #1: 
Darcy Shen <sadhen>
Group 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>
Group Member

 

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

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 pjoyez (Posted a comment)
  • -email is unavailable- added by sadhen (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-19 pjoyez StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code