This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269874

Summary: Wrong indication for incorrect CSS code
Product: ide Reporter: heyjoe
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal Keywords: UI
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot of the tooltip

Description heyjoe 2017-02-20 10:05:19 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.1.38-47-default running on amd64
Java; VM; Vendor = 1.8.0_101
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Reproducibility: Happens every time

  * Open a CSS file containing the following lines:

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local('Montserrat-Regular'), url('/vendor/fonts/Montserrat-Regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;

  The line starting with "unicode-range" is shown by the IDE with an error icon with a tooltip containing many errors about unexpected characters or tokens. Screenshot:
  Also the next line (the closing brace) is shown with an error "Unexpected token RBRACE found"

  These should not show as errors as this is valid CSS code.
Comment 1 heyjoe 2017-02-20 10:06:36 UTC
Created attachment 163667 [details]
screenshot of the tooltip