Skip to content

Commit

Permalink
[JS] Fix infinite loop on destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed May 1, 2018
1 parent 8e5e5fa commit 50b61bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion syntaxes/fjsx15/destructuring.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contexts:
(\{
(?> {{string}}
| \g<-1>
| [^{}]
| [^\{\}]
)*
\})
\s*=
Expand Down
6 changes: 1 addition & 5 deletions syntaxes/fjsx15/destructuring/object.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ contexts:
push: default-value
# Property.
- match: (?=\S)
set: [ go-to-delimiters, property-or-variable ]

go-to-delimiters:
- match: ""
set: delimiters
push: property-or-variable

property-or-variable:
- include: comment-no-pop
Expand Down

0 comments on commit 50b61bf

Please sign in to comment.