diff --git a/Units/parser-typescript.r/github-issue-4313.d/args.ctags b/Units/parser-typescript.r/github-issue-4313.d/args.ctags new file mode 100644 index 0000000000..5ee5f79f70 --- /dev/null +++ b/Units/parser-typescript.r/github-issue-4313.d/args.ctags @@ -0,0 +1 @@ +--sort=no diff --git a/Units/parser-typescript.r/github-issue-4313.d/expected.tags b/Units/parser-typescript.r/github-issue-4313.d/expected.tags new file mode 100644 index 0000000000..09daa3e767 --- /dev/null +++ b/Units/parser-typescript.r/github-issue-4313.d/expected.tags @@ -0,0 +1,2 @@ +saveTemplate input.ts /^function saveTemplate()$/;" f +foobar input.ts /^function foobar()$/;" f diff --git a/Units/parser-typescript.r/github-issue-4313.d/input.ts b/Units/parser-typescript.r/github-issue-4313.d/input.ts new file mode 100644 index 0000000000..97705e9f83 --- /dev/null +++ b/Units/parser-typescript.r/github-issue-4313.d/input.ts @@ -0,0 +1,10 @@ +function saveTemplate() +{ + { if (x < y) } + + if (x > y) +} + +function foobar() +{ +} diff --git a/parsers/typescript.c b/parsers/typescript.c index 0e04b1b695..fcd00f38c2 100644 --- a/parsers/typescript.c +++ b/parsers/typescript.c @@ -1414,7 +1414,6 @@ static void parseFunctionBody (const int scope, tokenInfo *const token) parseStringDQuote, parseStringTemplate, parseStringRegex, - parseTemplate, parseVarKeyword, parseLetKeyword, parseConstKeyword,