Skip to content

Commit

Permalink
[JavaScript] Fixed highlighting for generator star in method declarat…
Browse files Browse the repository at this point in the history
…ion. (#1597)
  • Loading branch information
Thomas Smith authored and wbond committed Jun 18, 2018
1 parent 94e9454 commit b261e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions JavaScript/JavaScript.sublime-syntax
Expand Up @@ -30,6 +30,7 @@ variables:
class_element_name: |-
(?x)(?:
\*?
{{property_name}}
| \#{{identifier}}
)
Expand Down
3 changes: 3 additions & 0 deletions JavaScript/tests/syntax_test_js.js
Expand Up @@ -933,6 +933,9 @@ class MyClass extends TheirClass {
async foo() {}
// ^^^^^ storage.type

*foo() {}
// ^ keyword.generator.asterisk

static async foo() {}
// ^^^^^ storage.type
}
Expand Down

0 comments on commit b261e81

Please sign in to comment.