Skip to content

Commit

Permalink
[JavaScript] Don't bother scoping whitespace after ) as part of funct…
Browse files Browse the repository at this point in the history
…ion declaration
  • Loading branch information
wbond committed Mar 14, 2018
1 parent 296cb30 commit db35574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions JavaScript/JavaScript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1325,9 +1325,7 @@ contexts:
set:
- match: \)
scope: punctuation.section.group.end.js
set:
- meta_include_prototype: false
- include: else-pop
pop: true
- include: function-parameter-binding-list

label:
Expand Down
2 changes: 1 addition & 1 deletion JavaScript/tests/syntax_test_js.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ class MyClass extends TheirClass {

foo // You thought I was a field...
() { return '...but was a method all along!'; }
// ^^^ meta.class.js meta.block.js meta.function.declaration.js
// ^^ meta.class.js meta.block.js meta.function.declaration.js

someMethod() {
return #e * 2;
Expand Down

0 comments on commit db35574

Please sign in to comment.