Ticket #152 (closed defect: fixed)

Opened 18 months ago

Last modified 14 months ago

conflict star assign and parameter default

Reported by: mb0 Owned by: mb0
Priority: minor Milestone:
Component: editor Version: AXDT 0.0.6
Keywords: Cc: ianp@…

Description

function test(data:*=null):void {}
                   ^ this is lexed as a compound assignment
}}

{{{
function test(data:* = null):void {}
                    ^ it works with spaces ... 
}}
}}}

Change History

Changed 18 months ago by mb0

  • summary changed from conflic star assign and parameter default to conflict star assign and parameter default

Changed 15 months ago by ianp

  • cc ianp@… added

Changed 14 months ago by mb0

  • owner changed from asdt.org to mb0
  • status changed from new to assigned

axdt 0.0.7 introduced a reworked lexer. with the  new lex system in place this should be trivial to fix.

whenever the token method is called to create a new STAR_ASSIGN we check whether the last token was a COLON. if it is we skip creating the STAR_ASSIGN and create both a STAR and an ASSIGN token.

Changed 14 months ago by mb0

  • status changed from assigned to closed
  • resolution set to fixed

it really was that simple. [1d3a60befacabb14f4792c5f2612be3c43036a41]

Note: See TracTickets for help on using tickets.