This fixes an issue where in code like this: ``` int foo(float bar) // hello() {} ``` The lexer would match `(float bar) // hello()` as the parameters of the function `foo`, instead of just `(float bar)`. In addition, a similar test case to what was originally reported in #2208 is added.
1502 lines
36 KiB
Text
Generated
1502 lines
36 KiB
Text
Generated
'using' Keyword
|
|
' ' Text.Whitespace
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'numerical' Name
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'&' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'&' Operator
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'&' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'&' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'unsigned' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'int' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'unsigned' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'int' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'// Names with namespaces\n' Comment.Single
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'Type::contains' Name.Function
|
|
'(' Punctuation
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'c' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'Type::contains' Name.Function
|
|
'(' Punctuation
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'c' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'c' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'char' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'c' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'vector' Name
|
|
'<' Operator
|
|
'char' Keyword.Type
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'chars' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'vector' Name
|
|
'<' Operator
|
|
'char' Keyword.Type
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'chars' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'noexcept' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'std::vector::contains' Name.Function
|
|
'(' Punctuation
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'vector' Name
|
|
'<' Operator
|
|
'char' Keyword.Type
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'chars' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'std::vector::contains' Name.Function
|
|
'(' Punctuation
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'vector' Name
|
|
'<' Operator
|
|
'char' Keyword.Type
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'chars' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'inline' Keyword.Reserved
|
|
' ' Text.Whitespace
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'std::vector::contains' Name.Function
|
|
'(' Punctuation
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'vector' Name
|
|
'<' Operator
|
|
'char' Keyword.Type
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'chars' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'inline' Keyword.Reserved
|
|
' ' Text.Whitespace
|
|
'explicit' Keyword
|
|
' ' Text.Whitespace
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'std::vector::contains' Name.Function
|
|
'(' Punctuation
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'vector' Name
|
|
'<' Operator
|
|
'char' Keyword.Type
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'chars' Name
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'// inside classes\n' Comment.Single
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'class' Keyword
|
|
' ' Text.Whitespace
|
|
'raz' Name.Class
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'virtual' Keyword
|
|
' ' Text.Whitespace
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'contains' Name.Function
|
|
'(' Punctuation
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'std' Name
|
|
':' Operator
|
|
':' Operator
|
|
'string' Name
|
|
' ' Text.Whitespace
|
|
'str' Name
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'// Make sure these are not functions:\n' Comment.Single
|
|
|
|
'else' Keyword
|
|
' ' Text.Whitespace
|
|
'if' Keyword
|
|
'(' Punctuation
|
|
'flag' Name
|
|
' ' Text.Whitespace
|
|
'&' Operator
|
|
'&' Operator
|
|
' ' Text.Whitespace
|
|
'func_call' Name
|
|
'(' Punctuation
|
|
')' Punctuation
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'new' Keyword
|
|
' ' Text.Whitespace
|
|
'T' Name
|
|
'(' Punctuation
|
|
')' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'operator' Keyword
|
|
' ' Text.Whitespace
|
|
'int' Keyword.Type
|
|
'(' Punctuation
|
|
')' Punctuation
|
|
' ' Text.Whitespace
|
|
'const' Keyword
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'}' Punctuation
|
|
' ' Text.Whitespace
|
|
'// so int is lexed as type and not function.name\n' Comment.Single
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'class' Keyword
|
|
' ' Text.Whitespace
|
|
'foo' Name.Class
|
|
' ' Text.Whitespace
|
|
'bar' Name
|
|
' ' Text.Whitespace
|
|
':' Operator
|
|
' ' Text.Whitespace
|
|
'public' Keyword
|
|
' ' Text.Whitespace
|
|
'raz' Name
|
|
'\n' Text.Whitespace
|
|
|
|
'{' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
' ' Text.Whitespace
|
|
'Q_OBJECT' Name
|
|
'\n' Text.Whitespace
|
|
|
|
' ' Text.Whitespace
|
|
'/// \\cond INCLUDE_QPROPERTIES\n' Comment.Single
|
|
|
|
' ' Text.Whitespace
|
|
'Q_PROPERTY' Name
|
|
'(' Punctuation
|
|
'arg1' Name
|
|
' ' Text.Whitespace
|
|
'arg2' Name
|
|
')' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
' ' Text.Whitespace
|
|
'/// \\endcond\n' Comment.Single
|
|
|
|
'\n' Text.Whitespace
|
|
|
|
'public' Keyword
|
|
':' Operator
|
|
'\n' Text.Whitespace
|
|
|
|
' ' Text.Whitespace
|
|
'/*!\n Lorem ipsum core vanditi.\n */' Comment.Multiline
|
|
'\n' Text.Whitespace
|
|
|
|
' ' Text.Whitespace
|
|
'enum' Keyword
|
|
' ' Text.Whitespace
|
|
'duck' Name.Class
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
' ' Text.Whitespace
|
|
'dog' Name
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'// Comment.\n' Comment.Single
|
|
|
|
' ' Text.Whitespace
|
|
'cat' Name
|
|
' ' Text.Whitespace
|
|
'// Comment (see \\ref replot).\n' Comment.Single
|
|
|
|
' ' Text.Whitespace
|
|
'}' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'}' Punctuation
|
|
';' Punctuation
|
|
'\n' Text.Whitespace
|