Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local variable's syntax highlight in some cases #99

Open
olmor opened this issue Oct 23, 2024 · 0 comments
Open

Local variable's syntax highlight in some cases #99

olmor opened this issue Oct 23, 2024 · 0 comments

Comments

@olmor
Copy link

olmor commented Oct 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant