IntelliJ-Luanalysis icon indicating copy to clipboard operation
IntelliJ-Luanalysis copied to clipboard

lua live template does not ignore -- comment lines

Open dbledet opened this issue 3 years ago • 0 comments

Environment

Name Version
IDEA version CLion 2021.2
Build #CL-212.4746.93, built on July 27, 2021
Runtime version: 11.0.11+9-b1504.13 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.11.0-27-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2000M
Cores: 2
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: au.com.glassechidna.luanalysis (1.3.0), zielu.gittoolbox (212.6.6)
Current Desktop: ubuntu:GNOME

Luanalysis version | 1.3.0 OS | ubuntu 5.11.0-27-generic #29~20.04.1-Ubuntu SMP

Preferences

(Preferences -> Languages & Frameworks > Luanalysis)

Lua

Name Setting
Language level Lua 5.3

What are the steps to reproduce this issue?

  1. open a lua file in CLion
  2. type in a comment line with the word "if" in it or the word "for"
  3. notice that the if statement reacts as if the comment is not there
  4. now try this with a the word "for" in it.

What happens?

This is what is inserted in the file:

-- this is a comment with an if statement in it then

end

-- this is a comment line with a for statement in it = 1, 10 do

end

What were you expecting to happen?

I expect the live update to ignore the comment line and not complete the for or the if construct

Any logs, error output, etc?

Any other comments?

dbledet avatar Sep 01 '21 14:09 dbledet