Skip to content

Teraterm updates#2165

Merged
birkenfeld merged 4 commits intopygments:masterfrom
kurtmckee:teraterm-updates-issue-1905
Jun 21, 2022
Merged

Teraterm updates#2165
birkenfeld merged 4 commits intopygments:masterfrom
kurtmckee:teraterm-updates-issue-1905

Conversation

@kurtmckee
Copy link
Copy Markdown
Contributor

This patch:

  • Tokenizes whitespace as Text.Whitespace, to help address WIP - Whitespace lexing after Keywords - collecting issue #1905.
  • Tokenizes strings in their entirety, rather than one character at a time.
  • Removes backslash escape sequences for string literals. They're not special in Tera Term string literals and I have no idea why I added those in the first place!
  • Updates tox.ini to drop testing for CPython 3.5 and PyPy3. This now matches CI.

Related to #1905

* Remove backslash escape lexing in string literals.
  (Don't know why I added those in the first place!)
* Lex strings in their entirety, not one character at a time.
* Treat unclosed string literals as errors.
@birkenfeld birkenfeld merged commit b99c8f2 into pygments:master Jun 21, 2022
@kurtmckee kurtmckee deleted the teraterm-updates-issue-1905 branch June 21, 2022 11:45
@Anteru Anteru added this to the 2.13.0 milestone Aug 14, 2022
@Anteru Anteru added the A-lexing area: changes to individual lexers label Aug 14, 2022
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants