Skip to content

Commit

Permalink
[FJSX15] Fix expressions inside parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Feb 20, 2018
1 parent 9cd215d commit b55d973
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions syntaxes/fjsx15/expression.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,15 @@ contexts:
- include: comment-no-pop
# Close the current expression group.
- include: close-group
# Comma operator.
- match: (?=,)
push: comma
# Type cast.
- match: (?=:)
set: [ close-group, type-cast ]
# Arrow functions need to be detect before expression groups.
- include: Packages/Naomi/syntaxes/fjsx15/arrow-function.no-pop.sublime-syntax
# Start of the expression.
- match: (?=\S)
push: [ optional-tail, head ]
# Other expressions.
- match: ""
push:
- include: main
- match: ""
pop: true

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

0 comments on commit b55d973

Please sign in to comment.