Skip to content

Commit

Permalink
[CSS3] Make calc expression optional
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Apr 19, 2018
1 parent 144ae01 commit 943c93c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions syntaxes/css3/function-call.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ contexts:
- include: comma-no-pop
- include: arg-close
- match: (?=\S)
push: [ calc-optional-tail, calc-head ]
push: [ calc-optional-tail, calc-optional-head ]

calc-head:
calc-optional-head:
- include: Packages/Naomi/syntaxes/css3/value.sublime-syntax
- include: else-pop

calc-optional-tail:
- match: "[+\\-*/]"
scope: keyword.operator.arithmetic.css.css3
push: calc-head
set: calc-optional-head
- include: else-pop

comma-no-pop:
Expand Down

0 comments on commit 943c93c

Please sign in to comment.