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
Name of the lexer Python
Code sample
The two below examples show that escaped characters in raw strings confuse the lexer.
import re s = "Hello World" m = re.findall(r"^[\w]+", s) print(m)
(rouge.jneen.net)
devid_line = status_line.split('STATUS:')[0] result_line = status_line.split('STATUS:')[1] print(f'Parsing "{result_line}"...') # parse devid string pattern = re.compile(r'.*\[p00t_(d\d{4})\].*') data = pattern.match(devid_line) devid = data.group(1)
Additional context
There is an issue in the GitLab issue tracker which describes the same problem: https://gitlab.com/gitlab-org/gitlab/-/issues/215643
I traced the problem back to commit 652a622: Use generic string states in Python lexer (#1477)
The text was updated successfully, but these errors were encountered:
@tuxu Thanks for the detailed report and sorry for the trouble :( Will have a look at that now.
Sorry, something went wrong.
It's not only raw strings, this also seems to set it off:
var = "\w+" foo = "bar"
@Spindel Thanks for the report! The code in the PR will fix this too :)
pyrmont
Successfully merging a pull request may close this issue.
Name of the lexer
Python
Code sample
The two below examples show that escaped characters in raw strings confuse the lexer.
(rouge.jneen.net)
(rouge.jneen.net)
Additional context
There is an issue in the GitLab issue tracker which describes the same problem:
https://gitlab.com/gitlab-org/gitlab/-/issues/215643
I traced the problem back to commit 652a622: Use generic string states in Python lexer (#1477)
The text was updated successfully, but these errors were encountered: