-5

In Intellij IDE, how to disable Unexpected Token warning?

I killed every options in inspections menu. But it still tortures me...

enter image description here

CSS code: css code

Eugene S
  • 6,709
  • 8
  • 57
  • 91
David H
  • 1
  • 1
  • 2

2 Answers2

2

The "Unexpected token" highlighting reports incorrect syntax. It is not an inspection and cannot be disabled, because code where such an error is highlighted is definitely wrong and will not compile / work as expected.

The comment above tells you how to fix the syntax of your CSS so that it is actually correct.

yole
  • 92,896
  • 20
  • 260
  • 197
0

For me the issue was minor. I had written the entire code outside of any method. It was just inside the class and hence this error was being shown as this code is unexpected in that area.