google/closure-stylesheets

Can't parse grid layout css syntax using named grid lines

danielsz opened this issue · 0 comments

Compiler parsing error: Parse error in shared.css at line 52 column 43:
  grid-template-columns: minmax(1em, 1fr) [enlarged-start] minmax(0, 1fr) [main-start] minmax(0, 40em) [main-end] minmax(0, 1fr) [enlarged-end] minmax(1em, 1fr);
                                          ^

com.google.common.css.compiler.ast.GssParserException: Parse error in shared.css at line 52 column 43:
  grid-template-columns: minmax(1em, 1fr) [enlarged-start] minmax(0, 1fr) [main-start] minmax(0, 40em) [main-end] minmax(0, 1fr) [enlarged-end] minmax(1em, 1fr);
                                          ^

        at com.google.common.css.compiler.ast.GssParserCC.parse(GssParserCC.java:214)
        at com.google.common.css.compiler.ast.GssParserCC.parse(GssParserCC.java:234)
        at com.google.common.css.compiler.ast.AbstractGssParser.parseInternal(AbstractGssParser.java:56)
        at com.google.common.css.compiler.ast.GssParser.parse(GssParser.java:46)
        at com.google.common.css.compiler.ast.GssParser.parse(GssParser.java:42)
        at com.google.common.css.compiler.commandline.DefaultCommandLineCompiler.parseAndPrint(DefaultCommandLineCompiler.java:126)
        at com.google.common.css.compiler.commandline.DefaultCommandLineCompiler.compile(DefaultCommandLineCompiler.java:110)
        at com.google.common.css.compiler.commandline.DefaultCommandLineCompiler.execute(DefaultCommandLineCompiler.java:156)
        at com.google.common.css.compiler.commandline.ClosureCommandLineCompiler.executeJob(ClosureCommandLineCompiler.java:374)
        at com.google.common.css.compiler.commandline.ClosureCommandLineCompiler.main(ClosureCommandLineCompiler.java:440)
Caused by: com.google.common.css.compiler.ast.ParseException: Encountered " "[" "[ "" at line 52, column 43.
Was expecting one of:
    ";" ...
    "/" ...
    "=" ...
    "}" ...
    "," ...
    <S> ...
    <IMPORTANT_SYM> ...
    <ATKEYWORD> ...

        at com.google.common.css.compiler.ast.GssParserCC.generateParseException(GssParserCC.java:5284)
        at com.google.common.css.compiler.ast.GssParserCC.jj_consume_token(GssParserCC.java:5149)
        at com.google.common.css.compiler.ast.GssParserCC.ruleSet(GssParserCC.java:581)
        at com.google.common.css.compiler.ast.GssParserCC.block(GssParserCC.java:3827)
        at com.google.common.css.compiler.ast.GssParserCC.start(GssParserCC.java:3930)
        at com.google.common.css.compiler.ast.GssParserCC.parse(GssParserCC.java:209)