Skip to content

Commit

Permalink
Allow brackets after optional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Feb 7, 2019
1 parent 0aabf09 commit 7d73889
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syntaxes/fjsx15/operator/other.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contexts:
set: optional-expression
- match: \?\.
scope: punctuation.accessor.optional-chain.js.fjsx15
set: [ optional-tail, accessor-head ]
set: [ optional-tail, optional-chain-head ]
- match: \.(?!\.)
scope: punctuation.accessor.js.fjsx15
set: [ optional-tail, accessor-head ]
Expand All @@ -60,6 +60,10 @@ contexts:
- match: (?=\S)
set: [ optional-tail, accessor-head ]

optional-chain-head:
- include: accessor-head
- include: optional-tail

optional-expression:
- include: Packages/Naomi/syntaxes/fjsx15/optional-expression.sublime-syntax

Expand Down

0 comments on commit 7d73889

Please sign in to comment.