permissive-parse.less 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @function-name: regexp;
  2. @d-value: 15;
  3. @-moz-document @function-name("(\d{0,@{d-value}})") {
  4. a {
  5. color: red;
  6. }
  7. }
  8. .custom-property {
  9. --this: () => {
  10. basically anything until final semi-colon;
  11. even other stuff; // i\'m serious;
  12. };
  13. @this: () => {
  14. basically anything until final semi-colon;
  15. even other stuff; // i\'m serious;
  16. };
  17. --that: @this;
  18. @red: lighten(red, 10%);
  19. --custom-color: @red lighten(red, 10%);
  20. custom-color: $--custom-color;
  21. }
  22. @iostat: 1;
  23. .var {
  24. --fortran: read (*, *, iostat=@iostat) radius, height;
  25. }
  26. @boom-boom: bam;
  27. @-moz-whatever (foo: "(" @boom-boom ")") {
  28. bar: foo;
  29. }
  30. @selectorList: #selector, .bar, foo[attr="blah"];
  31. @{selectorList} {
  32. bar: value;
  33. }
  34. @size: 640px;
  35. @tablet: (min-width: @size);
  36. @media @tablet {
  37. .holy-crap {
  38. this: works;
  39. }
  40. }
  41. // @todo - fix comment absorption after property
  42. .test-comment {
  43. --value: a/* { ; } */;
  44. --comment-within: ( /* okay?; comment; */ );
  45. }