Skip to content

Commit

Permalink
Add completions and include it to be highlighted
Browse files Browse the repository at this point in the history
  • Loading branch information
vrugtehagel authored and argyleink committed Jun 11, 2024
1 parent 71503a9 commit 77ef37e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CSS3.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -4003,6 +4003,7 @@ contexts:
- include: property-transform-box
- include: property-transform-origin
- include: property-transform-style
- include: property-transition-behavior
- include: property-transition-delay
- include: property-transition-duration
- include: property-transition-property
Expand Down
2 changes: 2 additions & 0 deletions completions/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@
("transform-origin", "transform-origin: ${1};"),
("transform-style", "transform-style: ${1};"),
("transition", "transition: ${1};"),
("transition-behavior", "transition-behavior: ${1};"),
("transition-delay", "transition-delay: ${1};"),
("transition-duration", "transition-duration: ${1};"),
("transition-property", "transition-property: ${1};"),
Expand Down Expand Up @@ -1667,6 +1668,7 @@
"transform-origin": t.position,
"transform-style": [("flat",), ("preserve-3d",)],
"transition": t.single_transition,
"transition-behavior": [("allow-discrete",), ("normal",)],
"transition-delay": t.time,
"transition-duration": t.time,
"transition-property": [("all",), ("none",), t.identifier],
Expand Down
6 changes: 6 additions & 0 deletions test/property-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -6214,6 +6214,12 @@
-webkit-transition: background-color linear 1s;
-webkit-transition: unset;

transition-behavior: initial;
transition-behavior: inherit;
transition-behavior: unset;
transition-behavior: allow-discrete;
transition-behavior: normal;

transition-delay: initial;
transition-delay: inherit;
transition-delay: unset;
Expand Down

0 comments on commit 77ef37e

Please sign in to comment.