Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update copyright year to 2023. | Matthäus G. Chajdas | 2023-03-29 | 1 | -1/+1 |
| | |||||
* | Happy new year. | Georg Brandl | 2022-01-25 | 1 | -1/+1 |
| | |||||
* | Replace tests that assert on token output with auto-updatable samples (#1649) | Oleh Prypin | 2021-01-18 | 1 | -32/+0 |
| | |||||
* | Run pyupgrade across codebase to modernize syntax and patterns (#1622) | Jon Dufresne | 2021-01-17 | 1 | -11/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | pyupgrade is a tool to automatically upgrade syntax for newer versions of the Python language. The project has been Python 3 only since 35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups: - Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all source files as utf-8 by default. - Replace IOError/EnvironmentError with OSError. Python 3 unified these exceptions. The old names are aliases only. - Use the Python 3 shorter super() syntax. - Remove "utf8" argument form encode/decode. In Python 3, this value is the default. - Remove "r" from open() calls. In Python 3, this value is the default. - Remove u prefix from Unicode strings. In Python 3, all strings are Unicode. - Replace io.open() with builtin open(). In Python 3, these functions are functionally equivalent. Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com> | ||||
* | Bump copyright year. | Matthäus G. Chajdas | 2021-01-03 | 1 | -1/+1 |
| | |||||
* | Overhaul Javascript numeric literals (#1534) | Kurt McKee | 2020-09-06 | 1 | -0/+85 |
* Rename the "Javascript" tests to reflect that they are for CoffeeScript This change also modifies the module docstring to reflect the file's purpose. * Overhaul the Javascript numeric literal parsing Fixes #307 This patch contains the following changes: * Adds 50+ unit tests for Javascript numeric literals * Forces ASCII numbers for float literals (so, now reject `.୪`) * Adds support for Javascript's BigInt notation (`100n`) * Adds support for leading-zero-only octal notation (`0777`) * Adds support for scientific notation with no significand (`1e10`) Numeric literal parsing is based on information at: * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures |