Skip to content

Commit

Permalink
Added polymorph funtion support to literal-function-labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
gandm committed Aug 10, 2015
1 parent 69f0de1 commit 520c19d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammars/Babel Language.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{
"comment": " e.g. play: function(arg1, arg2) { }",
"name": "meta.function.json.js",
"begin": "\\s*([_$a-zA-Z][$\\w]*)\\s*(:)\\s*(?:(async)\\s+)?\\s*(\\bfunction\\b)\\s*(\\*?)",
"begin": "\\s*([_$a-zA-Z][$\\w]*)\\s*(:)\\s*(?:(async)\\s+)?\\s*(\\bfunction\\b)\\s*(?=\\(|<)",
"end": "(?=\\{)",
"applyEndPatternLast": "1",
"beginCaptures": {
Expand All @@ -78,7 +78,7 @@
{
"comment": "e.g. 'play': function(arg1, arg2) { }",
"name": "meta.function.json.js",
"begin": "\\s*(?:((')((?:[^']|\\\\')*)('))|((\")((?:[^\"]|\\\\\")*)(\")))\\s*(:)\\s*(?:(async)\\s+)?\\s*(\\bfunction\\b)\\s*(\\*?)",
"begin": "\\s*(?:((')((?:[^']|\\\\')*)('))|((\")((?:[^\"]|\\\\\")*)(\")))\\s*(:)\\s*(?:(async)\\s+)?\\s*(\\bfunction\\b)\\s*(?=\\(|<)",
"end": "(?=\\{)",
"applyEndPatternLast": "1",
"beginCaptures": {
Expand Down

0 comments on commit 520c19d

Please sign in to comment.