Skip to content

Commit

Permalink
Parse JavaScript methods
Browse files Browse the repository at this point in the history
Closes #12
  • Loading branch information
dail8859 committed Apr 18, 2016
1 parent 713725e commit 7dfaafb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Parsers/C_Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

Keywords parse_c(const ParserSettings *ps, const char *text)
{
static TrRegex tr_function("(?:([\\w:]+)[*&]*\\s+(?:[*&]*\\s+)?[*&]*)?([\\w:]+)\\s*(\\([^)]*\\))");
static TrRegex tr_function("(?:([\\w:]+)[*&]*\\s+(?:[*&=]*\\s+)?[*&]*)?([\\w:]+)\\s*(\\([^)]*\\))");
static TrRegex tr_parameters("(\\$?\\w+|\\.\\.\\.)(\\s*=\\s*[\\\"\\w\\.']+)?\\s*[,)]");
Keywords keywords;

Expand Down
2 changes: 1 addition & 1 deletion tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

function myFunction(abc, def, ghi)

// Thats about it for now...
a.b.c = function(jkl, mno)

0 comments on commit 7dfaafb

Please sign in to comment.