Skip to content

Commit

Permalink
update the #230 test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-hykin committed Jun 20, 2019
1 parent 7c36a5d commit ce081e5
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/fixtures/issues/230.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
void func()
{
class var** thing = (class var**)func(); //comment
struct var** thing = (struct var**)func(); //comment
enum var** thing = (enum var**)func(); //comment
union var** thing = (union var**)func(); //comment
}
164 changes: 163 additions & 1 deletion test/specs/issues/230.cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,63 @@
- punctuation.section.block.begin.bracket.curly.function.definition
scopesEnd:
- meta.head.function.definition
- source: struct
- source: class
scopesBegin:
- meta.body.function.definition
scopes:
- storage.type.class.declare
- source: var
scopes:
- entity.name.type.class
- source: '**'
scopes:
- storage.modifier.pointer
- source: thing
scopes:
- variable.other.object.declare
- source: =
scopes:
- keyword.operator.assignment
- source: (
scopesBegin:
- meta.parens
scopes:
- punctuation.section.parens.begin.bracket.round
- source: class
scopes:
- storage.type.class.parameter
- source: var
scopes:
- entity.name.type.class.parameter
- source: '**'
scopes:
- storage.modifier.pointer
- source: )
scopes:
- punctuation.section.parens.end.bracket.round
scopesEnd:
- meta.parens
- source: func
scopes:
- entity.name.function.call
- source: (
scopes:
- punctuation.section.arguments.begin.bracket.round.function.call
- source: )
scopes:
- punctuation.section.arguments.end.bracket.round.function.call
- source: ;
scopes:
- punctuation.terminator.statement
- source: //
scopesBegin:
- comment.line.double-slash
scopes:
- punctuation.definition.comment
- source: comment
scopesEnd:
- comment.line.double-slash
- source: struct
scopes:
- storage.type.struct.declare
- source: var
Expand Down Expand Up @@ -78,6 +132,114 @@
- source: comment
scopesEnd:
- comment.line.double-slash
- source: enum
scopes:
- storage.type.enum.declare
- source: var
scopes:
- entity.name.type.enum
- source: '**'
scopes:
- storage.modifier.pointer
- source: thing
scopes:
- variable.other.object.declare
- source: =
scopes:
- keyword.operator.assignment
- source: (
scopesBegin:
- meta.parens
scopes:
- punctuation.section.parens.begin.bracket.round
- source: enum
scopes:
- storage.type.enum.parameter
- source: var
scopes:
- entity.name.type.enum.parameter
- source: '**'
scopes:
- storage.modifier.pointer
- source: )
scopes:
- punctuation.section.parens.end.bracket.round
scopesEnd:
- meta.parens
- source: func
scopes:
- entity.name.function.call
- source: (
scopes:
- punctuation.section.arguments.begin.bracket.round.function.call
- source: )
scopes:
- punctuation.section.arguments.end.bracket.round.function.call
- source: ;
scopes:
- punctuation.terminator.statement
- source: //
scopesBegin:
- comment.line.double-slash
scopes:
- punctuation.definition.comment
- source: comment
scopesEnd:
- comment.line.double-slash
- source: union
scopes:
- storage.type.union.declare
- source: var
scopes:
- entity.name.type.union
- source: '**'
scopes:
- storage.modifier.pointer
- source: thing
scopes:
- variable.other.object.declare
- source: =
scopes:
- keyword.operator.assignment
- source: (
scopesBegin:
- meta.parens
scopes:
- punctuation.section.parens.begin.bracket.round
- source: union
scopes:
- storage.type.union.parameter
- source: var
scopes:
- entity.name.type.union.parameter
- source: '**'
scopes:
- storage.modifier.pointer
- source: )
scopes:
- punctuation.section.parens.end.bracket.round
scopesEnd:
- meta.parens
- source: func
scopes:
- entity.name.function.call
- source: (
scopes:
- punctuation.section.arguments.begin.bracket.round.function.call
- source: )
scopes:
- punctuation.section.arguments.end.bracket.round.function.call
- source: ;
scopes:
- punctuation.terminator.statement
- source: //
scopesBegin:
- comment.line.double-slash
scopes:
- punctuation.definition.comment
- source: comment
scopesEnd:
- comment.line.double-slash
- source: '}'
scopes:
- punctuation.section.block.end.bracket.curly.function.definition

0 comments on commit ce081e5

Please sign in to comment.