Debian Codegraph @

tests/snippets/omg-idl/annotation_named_params.txt

raw
1 Asserts that annotation named parameters use Name, which is different from the
2 normal "scoped_name =" lexing, which uses Name.Constant.
3
4 ---input---
5 @mod::anno(value = const_a) const short const_b = const_a;
6
7 ---tokens---
8 '@mod::anno' Name.Decorator
9 '(' Punctuation
10 'value' Name
11 ' ' Text.Whitespace
12 '=' Punctuation
13 ' ' Text.Whitespace
14 'const_a' Name
15 ')' Punctuation
16 ' ' Text.Whitespace
17 'const' Keyword.Declaration
18 ' ' Text.Whitespace
19 'short' Keyword.Type
20 ' ' Text.Whitespace
21 'const_b' Name.Constant
22 ' ' Text.Whitespace
23 '=' Operator
24 ' ' Text.Whitespace
25 'const_a' Name
26 ';' Punctuation
27 '\n' Text.Whitespace