forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request universal-ctags#3331 from jafl/javascript-always-p…
…arse-function-block JavaScript: always parse the contents of a function block
- Loading branch information
Showing
4 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--fields=+K |
3 changes: 3 additions & 0 deletions
3
Units/parser-javascript.r/js-parse-function-block.d/expected.tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
AnonymousFunctionf0f039f00100 input.js /^A.add('X', function(Y) {$/;" function | ||
c input.js /^B.c = function(type, field)$/;" function function:B | ||
d input.js /^B.d = function(id)$/;" function function:B |
13 changes: 13 additions & 0 deletions
13
Units/parser-javascript.r/js-parse-function-block.d/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
A.add('X', function(Y) { | ||
|
||
B.c = function(type, field) | ||
{ | ||
var min = 5, | ||
is_int = (min != 'a'); | ||
}; | ||
|
||
B.d = function(id) | ||
{ | ||
}; | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters