Skip to content

Commit

Permalink
allow css variables in parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Jan 10, 2018
1 parent c5f482e commit 695d633
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LESS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ contexts:
- include: string-double
- include: string-single
- include: less-variables
- include: css-variables
- include: less-operators
- include: commas
- include: terminator
Expand Down Expand Up @@ -259,6 +260,7 @@ contexts:
- include: string-double
- include: string-single
- include: less-variables
- include: css-variables
- include: less-operators
- include: commas
- include: terminator
Expand Down
4 changes: 4 additions & 0 deletions syntax_test_less.less
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ html::before {
color: @link-color;
text-decoration: none;
&:hover {
.message-mixin(success; var(--green); var(--green-dark));
/* ^^^ support.function.var.css */
/* ^^ punctuation.definition.custom-property.css*/
/* ^ support.type.custom-property.name.css */
object-fit: scale-down;
/* ^^^^^^^^^^ support.type.property-name.css */
/* ^^^^^^^^^^ meta.property-value.css support.constant.property-value.css */
Expand Down

0 comments on commit 695d633

Please sign in to comment.