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.

View | Details | Raw Unified | Return to bug 267544
Collapse All | Expand All

(-)a/css.lib/src/org/netbeans/modules/css/lib/Css3.g (-1 / +1 lines)
Lines 657-663 Link Here
657
657
658
sass_map_pair
658
sass_map_pair
659
    :
659
    :
660
        (NUMBER|STRING|((function)=>function)|property) ws? COLON ws? cp_expression (ws? prio)?
660
        (NUMBER|(STRING (ws? STRING)*)|((function)=>function)|property|sass_map) ws? COLON ws? cp_expression (ws? prio)?
661
    ;
661
    ;
662
662
663
rule
663
rule
(-)a/css.lib/test/unit/src/org/netbeans/modules/css/lib/Css3ParserScssTest.java (+25 lines)
Lines 1980-1984 Link Here
1980
                + "}");
1980
                + "}");
1981
    }
1981
    }
1982
    
1982
    
1983
    public void testMapAnyDatatypeasKey() {
1984
        assertParses("$font-formats: 'woff' 'ttf'; // Define what webfont formats need importing\n"
1985
                + "$font-path: '../fonts/'; // Set the a path to your fonts directory\n"
1986
                + "\n"
1987
                + "$fonts: (\n"
1988
                + "  'heading': ( // give your font a semantic name for reference\n"
1989
                + "    'name': 'maven', // optionally set a different font name\n"
1990
                + "    'stack': ('helvetica', 'arial', sans-serif), // define the stack\n"
1991
                + "    'normal': 'maven/maven_pro_regular-webfont', // point to any webfont files\n"
1992
                + "    'bold': 'maven/maven_pro_bold-webfont',\n"
1993
                + "  ),\n"
1994
                + "\n"
1995
                + "  'body': (\n"
1996
                + "    'name': 'exo',\n"
1997
                + "    'stack': ('helvetica', 'arial', sans-serif),\n"
1998
                + "    'normal': 'exo/exo2-regular-webfont',\n"
1999
                + "    'italic': 'exo/exo2-italic-webfont',\n"
2000
                + "    'bold': 'exo/exo2-bold-webfont',\n"
2001
                + "    'bold' 'italic': 'exo/exo2-bolditalic-webfont',\n"
2002
                + "  ),\n"
2003
                + "\n"
2004
                + "  'alias': 'body', // create aliases when useful\n"
2005
                + ");");
2006
    }
2007
    
1983
    
2008
    
1984
}
2009
}

Return to bug 267544