Skip to content

Commit

Permalink
fix #95 improve features inside rulesets
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Jan 8, 2018
1 parent 57021bc commit 3ad47f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LESS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,13 @@ contexts:
- match: '\{'
scope: punctuation.section.property-list.begin.css
push:
- meta_scope: test.less
- match: '\}'
scope: punctuation.section.property-list.end.css
pop: true
- include: selector
- include: rule-list
- include: less-operators
- include: less-parameters
- include: terminator
- include: comment-line
- include: comment-block
Expand Down
10 changes: 10 additions & 0 deletions syntax_test_less.less
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ html::before {
header {
background-color: blue;

#hover({
/* ^ punctuation.section.property-list.begin.css */
.site-header-info-extra-tooltip {
opacity: 1;
#transition(~'opacity @{duration-short} @{ease}')
/* ^ string.quoted.single.css markup.raw.less keyword.operator.less */
}

})

.desktop-and-old-ie({
/* ^ punctuation.section.property-list.begin.css */
background-color: red;
Expand Down

0 comments on commit 3ad47f9

Please sign in to comment.