Skip to content

Local variable's syntax highlight in some cases #99

@olmor

Description

@olmor

Hi!

First, thank you so much for your work, it makes it very easy to write code in Harbour.

There is a slight problem in highlighting local variables if they are declared using line breaks using ;
In this case, every first variable declared after the line break is not highlighted correctly.

For example. in code below variables cMolFio. Getlist, cRukFio will not be highlighted like other local variables.

proc mainp()
local nM:=setnastr(CALCMONTH), nY:=setnastr(CALCYEAR), cName:=padr(SetNastr(ORGANIZ),90),;
cMolFio:=padr(SetNastr(MOLFIO),40), cMolDolg:=padr(SetNastr(MOLDOLG),30),;
GetList:={}, l26zn:=!empty(SetNastr(ACC26ZN)), lKbkAcc2016:=!empty(SetNastr(KBKACC2016)),;
cRukFio:=padr(SetNastr(RUK_FIO),50)

,,,
nM:=setnastr(CALCMONTH) // highlighted properly
cMolFio:='dddd' // NOT highlighted properly
cMolDolg:='yyyy' // highlighted properly
cRukFio:='zzzz' // NOT highlighted properly
...
return

Please look at the attached file (as example). I have shown the problems in ovals.

Regards, Oleg

locals

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions