Skip to content

Commit

Permalink
variable variables
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed May 4, 2018
1 parent 7239fd1 commit c824633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LESS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ contexts:
4: support.type.custom-property.name.css

less-variables:
- match: '(@)([a-zA-Z0-9_-][\w-]*)'
- match: '(@{1,2})([a-zA-Z0-9_-][\w-]*)'
scope: variable.other.less
captures:
1: punctuation.definition.variable.less
Expand Down
3 changes: 3 additions & 0 deletions syntax_test_less.less
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ html::before {
a[value*="text" I] {
/* ^ meta.attribute-selector.css keyword.operator.attribute-selector.css */
color: @link-color;
/* ^ punctuation.definition.variable.less */
color: @@color; // variable variables
/* ^^ punctuation.definition.variable.less */
text-decoration: none;
&:hover {
.mixin { /* */ }
Expand Down

0 comments on commit c824633

Please sign in to comment.