Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2634

Unicode-range unexpected token PLUS found

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.0
    • Fix Version/s: 12.0
    • Component/s: web - CSS Editor
    • Labels:

      Description

      I hope this issue is correctly created. So, I'm using Apache NetBeans 11.0 for my webdevelopment. When I see red lines, I want to go ahead and fix the code. However, in one .css file I see red lines even under correct code.

      For example, I have this CSS:

      @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 300;
      src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v16/mem5YaGs126MiZpBA-UN_r8OX-hpOqc.woff2) format('woff2');
      font-display: swap;
      unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
      }
      

      According to W3C CSS validator, the unicode-range line is correct. However, NetBeans puts a red line underneath it with the error (example of the error of the red line underneath the first +: "unexpected token PLUS found")

      As far as I know, this could be maybe because of NetBeans using a too low CSS version but I'm not 100% sure. See the attachment for a better view of what I mean.

        Attachments

        1. bug_netbeans_css.png
          12 kB
          Joshua Bakker

          Issue Links

            Activity

              People

              • Assignee:
                matthiasblaesing Matthias Bläsing
                Reporter:
                jb1997 Joshua Bakker
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: