Skip to content

Commit

Permalink
add previously skipped issue #79
Browse files Browse the repository at this point in the history
  • Loading branch information
matter123 committed May 7, 2019
1 parent 4889e93 commit 433748b
Show file tree
Hide file tree
Showing 2 changed files with 342 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fixtures/issues/079.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
template class MyStack<int, 6>;
template MyStack<int, 6>::MyStack( void );
extern template class MyStack<int, 6>;
extern template MyStack<int, 6>::MyStack( void );
338 changes: 338 additions & 0 deletions test/specs/issues/079.cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,338 @@
[
{
"source": "template "
},
{
"source": "class",
"scopesBegin": [
"meta.block.class.cpp",
"meta.head.class.cpp"
],
"scopes": [
"storage.type.class.cpp"
]
},
{
"source": "MyStack",
"scopes": [
"entity.name.type.class.cpp"
]
},
{
"source": "<",
"scopesBegin": [
"meta.template.call.cpp"
],
"scopes": [
"punctuation.section.angle-brackets.begin.template.call.cpp"
]
},
{
"source": "int",
"scopes": [
"storage.type.primitive.cpp"
]
},
{
"source": ",",
"scopes": [
"comma.cpp",
"punctuation.separator.template.argument.cpp"
]
},
{
"source": "6",
"scopes": [
"constant.numeric.decimal.cpp"
]
},
{
"source": ">",
"scopes": [
"punctuation.section.angle-brackets.end.template.call.cpp"
],
"scopesEnd": [
"meta.head.class.cpp",
"meta.template.call.cpp"
]
},
{
"source": ";",
"scopes": [
"punctuation.terminator.statement.cpp"
],
"scopesEnd": [
"meta.block.class.cpp"
]
},
{
"source": "template"
},
{
"source": "MyStack",
"scopesBegin": [
"meta.scope-resolution.cpp"
],
"scopes": [
"entity.name.type.namespace.scope-resolution.cpp"
]
},
{
"source": "<",
"scopesBegin": [
"meta.template.call.cpp"
],
"scopes": [
"keyword.operator.comparison.cpp"
]
},
{
"source": "int",
"scopes": [
"storage.type.primitive.cpp"
]
},
{
"source": ",",
"scopes": [
"comma.cpp",
"punctuation.separator.template.argument.cpp"
]
},
{
"source": "6",
"scopes": [
"constant.numeric.decimal.cpp"
]
},
{
"source": ">",
"scopes": [
"keyword.operator.comparison.cpp"
],
"scopesEnd": [
"meta.template.call.cpp"
]
},
{
"source": "::",
"scopes": [
"punctuation.separator.namespace.access.cpp"
],
"scopesEnd": [
"meta.scope-resolution.cpp"
]
},
{
"source": "MyStack",
"scopesBegin": [
"meta.function.definition.parameters.cpp",
"meta.function.definition.parameters.cpp"
],
"scopes": [
"entity.name.function.cpp"
]
},
{
"source": "(",
"scopes": [
"punctuation.section.parameters.begin.bracket.round.cpp"
]
},
{
"source": "void",
"scopes": [
"storage.type.primitive.cpp"
]
},
{
"source": ")",
"scopes": [
"punctuation.section.parameters.end.bracket.round.cpp"
],
"scopesEnd": [
"meta.function.definition.parameters.cpp",
"meta.function.definition.parameters.cpp"
]
},
{
"source": ";",
"scopes": [
"punctuation.terminator.statement.cpp"
]
},
{
"source": "extern",
"scopes": [
"storage.modifier.specifier.extern.cpp"
]
},
{
"source": " template "
},
{
"source": "class",
"scopesBegin": [
"meta.block.class.cpp",
"meta.head.class.cpp"
],
"scopes": [
"storage.type.class.cpp"
]
},
{
"source": "MyStack",
"scopes": [
"entity.name.type.class.cpp"
]
},
{
"source": "<",
"scopesBegin": [
"meta.template.call.cpp"
],
"scopes": [
"punctuation.section.angle-brackets.begin.template.call.cpp"
]
},
{
"source": "int",
"scopes": [
"storage.type.primitive.cpp"
]
},
{
"source": ",",
"scopes": [
"comma.cpp",
"punctuation.separator.template.argument.cpp"
]
},
{
"source": "6",
"scopes": [
"constant.numeric.decimal.cpp"
]
},
{
"source": ">",
"scopes": [
"punctuation.section.angle-brackets.end.template.call.cpp"
],
"scopesEnd": [
"meta.head.class.cpp",
"meta.template.call.cpp"
]
},
{
"source": ";",
"scopes": [
"punctuation.terminator.statement.cpp"
],
"scopesEnd": [
"meta.block.class.cpp"
]
},
{
"source": "extern",
"scopes": [
"storage.modifier.specifier.extern.cpp"
]
},
{
"source": " template"
},
{
"source": "MyStack",
"scopesBegin": [
"meta.scope-resolution.cpp"
],
"scopes": [
"entity.name.type.namespace.scope-resolution.cpp"
]
},
{
"source": "<",
"scopesBegin": [
"meta.template.call.cpp"
],
"scopes": [
"keyword.operator.comparison.cpp"
]
},
{
"source": "int",
"scopes": [
"storage.type.primitive.cpp"
]
},
{
"source": ",",
"scopes": [
"comma.cpp",
"punctuation.separator.template.argument.cpp"
]
},
{
"source": "6",
"scopes": [
"constant.numeric.decimal.cpp"
]
},
{
"source": ">",
"scopes": [
"keyword.operator.comparison.cpp"
],
"scopesEnd": [
"meta.template.call.cpp"
]
},
{
"source": "::",
"scopes": [
"punctuation.separator.namespace.access.cpp"
],
"scopesEnd": [
"meta.scope-resolution.cpp"
]
},
{
"source": "MyStack",
"scopesBegin": [
"meta.function.definition.parameters.cpp",
"meta.function.definition.parameters.cpp"
],
"scopes": [
"entity.name.function.cpp"
]
},
{
"source": "(",
"scopes": [
"punctuation.section.parameters.begin.bracket.round.cpp"
]
},
{
"source": "void",
"scopes": [
"storage.type.primitive.cpp"
]
},
{
"source": ")",
"scopes": [
"punctuation.section.parameters.end.bracket.round.cpp"
],
"scopesEnd": [
"meta.function.definition.parameters.cpp",
"meta.function.definition.parameters.cpp"
]
},
{
"source": ";",
"scopes": [
"punctuation.terminator.statement.cpp"
]
}
]

0 comments on commit 433748b

Please sign in to comment.