diff --git a/src/main/javacc/com/vaadin/sass/internal/Parser.jj b/src/main/javacc/com/vaadin/sass/internal/Parser.jj index 178ef51b..415ad4a6 100644 --- a/src/main/javacc/com/vaadin/sass/internal/Parser.jj +++ b/src/main/javacc/com/vaadin/sass/internal/Parser.jj @@ -2512,7 +2512,7 @@ List numberTerm(char op) : | n= { result = LexicalUnitImpl.createRAD(n.beginLine, n.beginColumn, number(op, n, 3)); } | n= - { result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn, number(op, n, 3)); } + { result = LexicalUnitImpl.createGRAD(n.beginLine, n.beginColumn, number(op, n, 4)); } | n= { result = LexicalUnitImpl.createS(n.beginLine, n.beginColumn, number(op, n, 1)); } | n= diff --git a/src/test/resources/automatic/css/bourboun-derived-tests.css b/src/test/resources/automatic/css/bourboun-derived-tests.css new file mode 100644 index 00000000..883cbff9 --- /dev/null +++ b/src/test/resources/automatic/css/bourboun-derived-tests.css @@ -0,0 +1,3 @@ +.foo { + units: 1px, 1cm, 1mm, 1%, 1ch, 1pica, 1in, 1em, 1rem, 1pt, 1pc, 1ex, 1vw, 1vh, 1vmin, 1vmax, 1deg, 1rad, 1grad, 1turn; +} diff --git a/src/test/resources/automatic/scss/bourboun-derived-tests.scss b/src/test/resources/automatic/scss/bourboun-derived-tests.scss new file mode 100644 index 00000000..f8a8551c --- /dev/null +++ b/src/test/resources/automatic/scss/bourboun-derived-tests.scss @@ -0,0 +1,6 @@ + $units: 1px, 1cm, 1mm, 1%, 1ch, 1pica, 1in, 1em, 1rem, 1pt, 1pc, 1ex, 1vw, 1vh, 1vmin, 1vmax, 1deg, 1rad, 1grad, 1turn; + + .foo { + units: $units; + } + \ No newline at end of file