Search code examples
intellij-ideainspections

Intellij IDE, how to disable 'Unexpected Token' warning inspection result


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


Solution

  • 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.