#805 javascript object literal notation parsing

v1.23
closed-fixed
Filetypes (68)
5
2012-09-25
2012-01-07
Mwinter
No

Geany 0.21

When using javascript object literal notation, Geany only seems to recognize property values which are strings, functions or positive integers. Any other values seem to break recognition of object properties, stopping the symbols list.
This seems to apply to at least non-integer numbers, negative numbers, sub-objects and arrays. Please see the following snippet for examples:

var test = {
'foo' : 'bar',
'id' : -1,
'decimal' : 1.3,
'subobj' : {},
'array' : [],
}

Discussion

  • Colomban Wendling

    Now fixed in Git, thanks for reporting.

     
  • Colomban Wendling

    • milestone: --> v1.23
    • assigned_to: nobody --> colombanw
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks