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 267544

Summary: Sass highlighting - key value
Product: web Reporter: MasterOfZozo
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Map as a key
simple fix

Description MasterOfZozo 2016-08-11 17:06:15 UTC
Created attachment 161632 [details]
Map as a key

In sass every datatype can be used as a key of map. Netbeans currently support only string.

For example, here is used map as a key.
https://github.com/oddbird/accoutrement-type

It is described here in the last but one paragraph of maps section.
http://sass-lang.com/documentation/file.SASS_REFERENCE.html#maps
Comment 1 Milutin Kristofic 2016-09-21 13:08:25 UTC
Created attachment 162156 [details]
simple fix

I need to rewrite a big chunk of parser to enable any data type as a key in sass map. I will look at this later, for now I have simple fix that I can push to dev build, if it is necessary.
Comment 2 MasterOfZozo 2016-09-21 13:27:56 UTC
(In reply to Milutin Kristofic from comment #1)

I do not think it is realy required for now as it is only a stylistic issue.
Moreover, Sass authors trying to add something like namespaces to version 4 which will result in a lot of breaking changes in code.
Comment 3 Milutin Kristofic 2016-11-03 13:35:36 UTC
I pushed small fix to repository, rest should be added later

http://hg.netbeans.org/web-main/rev/b132c0a8a338
Comment 4 Quality Engineering 2016-11-05 02:58:35 UTC
Integrated into 'main-silver', will be available in build *201611050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b132c0a8a338
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #267544 - Sass highlighting - key value