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.
Created attachment 158914 [details] Sample scss file The attached file is a snippet of SASS code. Line 11 is flagged by editor syntax-checking with "Unexpected token HASH_SYMBOL found". This is false error reporting. The file complies correctly. This error appears only a flaw in the editor's hint rules for SASS/SCSS language. Thank you.
Hi, it is reproducible, I am trying to fix this. Now Netbeans can accept sass interpolation only in brackets ... like this (#{$declaration})
Yes, adding brackets makes NetBeans happy. No longer an error (hint) in the editor. However, adding the brackets as indicated then prevents the scss from compiling: ---- "C:\Ruby\bin\sass.bat" "--cache-location" "C:\Users\William\AppData\Local\NetBeans\Cache\8.0.2\sass-compiler" "\\COMET\www\marspremedia.test\scss\site.scss" "\\COMET\www\marspremedia.test\css\site.css" '\\COMET\www\marspremedia.test' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. Error: Invalid CSS after "only screen and (": expected expression (e.g. 1px, bold), was "(max-width: 480..." on line 300 of \\COMET\www\marspremedia.test\scss\site.scss, in `grid-media-query' from line 474 of \\COMET\www\marspremedia.test\scss\site.scss Use --trace for backtrace. ---- Remove the brackets and it compiles correctly. I will await a fix, just let me know, but no worries, this is only an annoyance. Not at all critical. Thank you for your help with this. --William
Ok, I fixed this in http://hg.netbeans.org/web-main/rev/30ec99ad5616
Integrated into 'main-silver', will be available in build *201611300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/30ec99ad5616 User: Milutin Kristofic <mkristofic@netbeans.org> Log: #258425 - Syntax checking (hints) SASS language "Unexpected token HASH_SYMBOL found"