Skip to content

Commit

Permalink
[FJSX15] Simplify expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Feb 13, 2018
1 parent 5c03a9c commit 386f869
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions syntaxes/fjsx15/expression.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ contexts:
close-group:
- match: \)
scope: punctuation.section.group.end.js.fjsx15
set: optional-tail
pop: true

comma:
- include: Packages/Naomi/syntaxes/fjsx15/operator/comma.sublime-syntax
Expand Down Expand Up @@ -112,10 +112,6 @@ contexts:
- include: comment-no-pop
# Close the current expression group.
- include: close-group
# Open new expression group.
- match: \(
scope: punctuation.section.group.begin.js.fjsx15
push: open-group
# Comma operator.
- match: (?=,)
push: comma
Expand All @@ -126,7 +122,7 @@ contexts:
- include: Packages/Naomi/syntaxes/fjsx15/arrow-function.no-pop.sublime-syntax
# Start of the expression.
- match: (?=\S)
push: main
push: [ optional-tail, head ]

optional-tail:
- include: comment-no-pop
Expand Down

0 comments on commit 386f869

Please sign in to comment.