diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2021-06-20 11:42:04 +0200 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2021-06-20 11:42:04 +0200 |
commit | a537d5e9663e888706df75c40826be3aed177959 (patch) | |
tree | b24b0d946bd3cf5977cc3e1faf7184cb01e072a0 /tests/examplefiles/cpp/functions.cpp.output | |
parent | fea1fbc0576bb9d6d1dc84ac8cc3825e0a4e5232 (diff) | |
download | pygments-git-a537d5e9663e888706df75c40826be3aed177959.tar.gz |
Use the correct whitespace token for the C family.
The CFamilyLexer was matching whitespace as Text instead of Whitespace.
Diffstat (limited to 'tests/examplefiles/cpp/functions.cpp.output')
-rw-r--r-- | tests/examplefiles/cpp/functions.cpp.output | 876 |
1 files changed, 438 insertions, 438 deletions
diff --git a/tests/examplefiles/cpp/functions.cpp.output b/tests/examplefiles/cpp/functions.cpp.output index cec14f10..5b424bd8 100644 --- a/tests/examplefiles/cpp/functions.cpp.output +++ b/tests/examplefiles/cpp/functions.cpp.output @@ -1,898 +1,898 @@ 'using' Keyword -' ' Text +' ' Text.Whitespace 'std' Name ':' Operator ':' Operator 'numerical' Name ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'noexcept' Keyword ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'noexcept' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'noexcept' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'noexcept' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator '*' Operator '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator '*' Operator '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator '*' Operator @@ -901,20 +901,20 @@ 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator '*' Operator '*' Operator @@ -922,254 +922,254 @@ '*' Operator 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '*' Operator '*' Operator '*' Operator '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '*' Operator '*' Operator '*' Operator '*' Operator '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'char' Keyword.Type -' ' Text +' ' Text.Whitespace '*' Operator -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace '// Names with namespaces\n' Comment.Single -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'Type::contains' Name.Function '(' Punctuation 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'c' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'noexcept' Keyword ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'string' Name -' ' Text +' ' Text.Whitespace 'Type::contains' Name.Function '(' Punctuation 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'c' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'noexcept' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'c' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'noexcept' Keyword ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'char' Keyword.Type -' ' Text +' ' Text.Whitespace 'c' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'noexcept' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'std' Name @@ -1179,21 +1179,21 @@ '<' Operator 'char' Keyword.Type '>' Operator -' ' Text +' ' Text.Whitespace 'chars' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'noexcept' Keyword ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'std' Name @@ -1203,23 +1203,23 @@ '<' Operator 'char' Keyword.Type '>' Operator -' ' Text +' ' Text.Whitespace 'chars' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'noexcept' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'std::vector::contains' Name.Function '(' Punctuation 'std' Name @@ -1229,19 +1229,19 @@ '<' Operator 'char' Keyword.Type '>' Operator -' ' Text +' ' Text.Whitespace 'chars' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'std::vector::contains' Name.Function '(' Punctuation 'std' Name @@ -1251,27 +1251,27 @@ '<' Operator 'char' Keyword.Type '>' Operator -' ' Text +' ' Text.Whitespace 'chars' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'inline' Keyword.Reserved -' ' Text +' ' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'std::vector::contains' Name.Function '(' Punctuation 'std' Name @@ -1281,27 +1281,27 @@ '<' Operator 'char' Keyword.Type '>' Operator -' ' Text +' ' Text.Whitespace 'chars' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'inline' Keyword.Reserved -' ' Text +' ' Text.Whitespace 'explicit' Keyword -' ' Text +' ' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'std::vector::contains' Name.Function '(' Punctuation 'std' Name @@ -1311,95 +1311,95 @@ '<' Operator 'char' Keyword.Type '>' Operator -' ' Text +' ' Text.Whitespace 'chars' Name ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword ';' Punctuation -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace '// inside classes\n' Comment.Single -'\n' Text +'\n' Text.Whitespace 'class' Keyword ' ' Text 'raz' Name.Class -' ' Text +' ' Text.Whitespace '{' Punctuation -'\n' Text +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'virtual' Keyword -' ' Text +' ' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'contains' Name.Function '(' Punctuation 'const' Keyword -' ' Text +' ' Text.Whitespace 'std' Name ':' Operator ':' Operator 'string' Name -' ' Text +' ' Text.Whitespace 'str' Name ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace '}' Punctuation -'\n' Text +'\n' Text.Whitespace -'\n' Text +'\n' Text.Whitespace '// Make sure these are not functions:\n' Comment.Single 'else' Keyword -' ' Text +' ' Text.Whitespace 'if' Keyword '(' Punctuation 'flag' Name -' ' Text +' ' Text.Whitespace '&' Operator '&' Operator -' ' Text +' ' Text.Whitespace 'func_call' Name '(' Punctuation ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -'\n' Text +'\n' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'T' Name '(' Punctuation ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace 'operator' Keyword -' ' Text +' ' Text.Whitespace 'int' Keyword.Type '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'const' Keyword -' ' Text +' ' Text.Whitespace '{' Punctuation '}' Punctuation -' ' Text +' ' Text.Whitespace '// so int is lexed as type and not function.name\n' Comment.Single |