Skip to content
New issue

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

Stop syntax checking inside comments and docstrings #22599

Open
7 tasks
radlyeel opened this issue Sep 27, 2024 · 0 comments
Open
7 tasks

Stop syntax checking inside comments and docstrings #22599

radlyeel opened this issue Sep 27, 2024 · 0 comments

Comments

@radlyeel
Copy link

Issue Report Checklist

  • [* ] Searched the issues page for similar reports
  • [ *] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [ *] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

What steps reproduce the problem?

  1. Inside a comment or docstring, inclue Python punctuation, such as ( or :
  2. Note the Spyder highlights and indents as if it were 'live code'
  3. Stifle your annoyance and work around it.

What is the expected output? What do you see instead? In the case of, say opening a parenthetical expression I expect the ( to be gray like the rest of the comment, not red because it is not yet terminated. If I end a line with a colon, the next line is indented, but in a comment that's annoying.

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

  • Spyder version: 6.0.1
  • Python version: 3.11.9
  • Qt version: ?
  • PyQt version: ?
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant