We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import pygments from pygments.lexers import get_lexer_by_name
source=''' int a = 5; int b = 15; if (a == 5) b++; '''
lexer = get_lexer_by_name("csharp", stripall=True) pygmentsTokens = list(lexer.get_tokens_unprocessed(source)) print(pygmentsTokens)
Operator == produce 2 tokens =, operator ++ too. Number 15 produce two number tokens: 1 and 5.
The text was updated successfully, but these errors were encountered:
C#: recognize Operators as such, fix split-up numeric literals
668ec15
Fixes #2256
Thanks for the report!
Sorry, something went wrong.
a9b5fac
No branches or pull requests
import pygments
from pygments.lexers import get_lexer_by_name
source='''
int a = 5;
int b = 15;
if (a == 5)
b++;
'''
lexer = get_lexer_by_name("csharp", stripall=True)
pygmentsTokens = list(lexer.get_tokens_unprocessed(source))
print(pygmentsTokens)
Operator == produce 2 tokens =, operator ++ too.
Number 15 produce two number tokens: 1 and 5.
The text was updated successfully, but these errors were encountered: