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

False highlight of "num" in case it's a parameter name #2

Open
KnoP-01 opened this issue Jan 28, 2020 · 0 comments
Open

False highlight of "num" in case it's a parameter name #2

KnoP-01 opened this issue Jan 28, 2020 · 0 comments

Comments

@KnoP-01
Copy link
Owner

KnoP-01 commented Jan 28, 2020

In

TPWrite "goPosNo="\num:=GOutput(goPosNo);

"num" is highlighted as rapidType. I like to avoid that and only highlight num if it's part of a declaration:

module mod1
  pers num a;
  proc proc1()
    var num b;
  endproc
endmodule

The tricky case is the following:

  PROC SendAnswer(
    num Command,
    byte ErrorBytes{*}
    \byte DataBytes{*}
    \num NoOfDataBytes)

In an argument list there is no "var", "const" or "pers" in front of "num".

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

No branches or pull requests

1 participant