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 248270 - Display inline marked as error
Summary: Display inline marked as error
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-30 09:00 UTC by Vladimir Riha
Modified: 2014-11-13 15:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-10-30 09:00:53 UTC

    
Comment 1 Vladimir Riha 2014-10-30 09:01:43 UTC
Please try following CSS:

.test {
  display: inline;
}


the line with display property is marked as error "UNEXPECTED TOKEN LESS_IMPORT_TYPE found"


Thanks


Product Version: NetBeans IDE Dev (Build javascript2-frameworks-487-on-20141029)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 2 Vladimir Riha 2014-10-30 10:31:52 UTC
FYI if you create a new HTML5 sample project ResponseRabbits, then the bootstrap.css contains now some errors related to either "display" property or with the same error message:


video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

select[multiple],
select[size] {
  height: auto;
}
Comment 3 Milutin Kristofic 2014-10-31 17:02:55 UTC
I have already a fix on my local repository, but I need more time to check and fix all unit tests. 

CSS Parser has tokens for special words in LESS and SASS like inline and that makes a lot of errors.

Netbeans is displaying error when you have for example:
.and {}
.only {}

and other combinations of parser rules and keywords.
Comment 4 Vladimir Riha 2014-10-31 18:08:48 UTC
Thank you for update, I think there is an issue about these special "keywords"
Comment 5 Milutin Kristofic 2014-11-03 18:28:31 UTC
http://hg.netbeans.org/web-main/rev/65a682d1a3db

Fixed for all keywords except for keyword NOT. I will fix keyword NOT later.
Comment 6 Quality Engineering 2014-11-04 10:33:34 UTC
Integrated into 'main-silver', will be available in build *201411040753* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/65a682d1a3db
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #248270 - Display inline marked as error
Comment 7 Quality Engineering 2014-11-06 03:43:14 UTC
Integrated into 'main-silver', will be available in build *201411060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/538f90715ea1
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #248270 - Display inline marked as error - additional fix - better error catching
Comment 8 Vladimir Riha 2014-11-13 15:34:31 UTC
Verified, thank you

Product Version: NetBeans IDE Dev (Build 201411130002)
Java: 1.7.0_72; Java HotSpot(TM) Client VM 24.72-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_72-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)