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

Tcl: backslashes #2686

Open
verhovsky opened this issue Apr 8, 2024 · 3 comments
Open

Tcl: backslashes #2686

verhovsky opened this issue Apr 8, 2024 · 3 comments
Labels
A-lexing area: changes to individual lexers good first issue Good for newcomers

Comments

@Anteru
Copy link
Collaborator

Anteru commented Apr 27, 2024

We're not trying to be accurate in terms of finding errors; if you provide invalid code, there's no way for us to flag it. The goal of Pygments is to highlight semantically correct code.

@Anteru Anteru closed this as completed Apr 27, 2024
@verhovsky
Copy link
Contributor Author

Pygments is highlighting the backslashes as errors but they're not errors. It is correct code, it comes from here

# backslash suppresses the special meaning of characters:
set amount \$16.42


# backslash adds special meaning to certain characters:
puts lots\nof\n\n\n\n\n\nnewlines

https://www.learnxinyminutes.com/docs/tcl/

@Anteru
Copy link
Collaborator

Anteru commented Apr 27, 2024

Ah ok, sorry, misread your initial statement.

@Anteru Anteru reopened this Apr 27, 2024
@Anteru Anteru added A-lexing area: changes to individual lexers good first issue Good for newcomers labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants