summaryrefslogtreecommitdiffstats
path: root/Parser/lexer
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings ↵Miss Islington (bot)2025-08-032-16/+16
| | | | | | | | (GH-137328) (#137345) gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328) (cherry picked from commit 0153d82a5ab0c6ac16c046bdd4438ea11b58d59d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-135148: Correctly handle f/t strings with comments and debug ↵Lysandros Nikolaou2025-07-211-20/+68
| | | | | | expressions (#135198) (#136899) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-132769: Refactor possible read-out-of-bounds in `lexer.c` ↵Miss Islington (bot)2025-04-211-1/+1
| | | | | | | | (GH-132770) (#132788) gh-132769: Refactor possible read-out-of-bounds in `lexer.c` (GH-132770) (cherry picked from commit ea8ec95cfadbf58a11ef8e41341254d982a1a479) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-129958: Properly disallow newlines in format specs in ↵Łukasz Langa2025-04-181-0/+8
| | | | | | | single-quoted f-strings (GH-130063) (GH-132692) (cherry picked from commit 2f8b08da475152adea59b6bf98e2d0cb73dd8a59) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-130618: Fix parser error when using lambdas inside f-strings ↵Pablo Galindo Salgado2025-03-011-1/+5
| | | | | | | (GH-130638) (#130642) (cherry picked from commit e06bebb87e1b33f7251196e1ddb566f528c3fc98) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* [3.13] gh-129093: Fix f-string debug text sometimes getting cut off when ↵Miss Islington (bot)2025-01-221-3/+1
| | | | | | | | expression contains `!` (GH-129159) (#129163) gh-129093: Fix f-string debug text sometimes getting cut off when expression contains `!` (GH-129159) (cherry picked from commit 767cf708449fbf13826d379ecef64af97d779510) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.13] gh-123229: Fix valgrind warning by initializing the f-string buffers ↵Miss Islington (bot)2024-08-231-1/+2
| | | | | | | | | to 0 in the tokenizer (GH-123263) (#123264) gh-123229: Fix valgrind warning by initializing the f-string buffers to 0 in the tokenizer (GH-123263) (cherry picked from commit adc5190014efcf7b7a4c5dfc9998faa8345527ed) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-122026: Fix identification of mismatched parentheses inside ↵Miss Islington (bot)2024-07-191-0/+3
| | | | f-strings (GH-122028) (#122041)
* [3.13] gh-121905: Consistently use "floating-point" instead of "floating ↵Serhiy Storchaka2024-07-191-1/+1
| | | | | point" (GH-121907) (GH-122012) (cherry picked from commit 1a0c7b9ba48a2dffb70bb0c7327abae1d3e87356)
* [3.13] gh-121130: Fix f-string format specifiers with debug expressions ↵Pablo Galindo Salgado2024-07-163-5/+21
| | | | | (GH-121150) (#121868) (cherry picked from commit c46d64e0ef8e92a6b4ab4805d813d7e4d6663380)
* gh-114569: Use PyMem_* APIs for most non-PyObject uses (#114574)Erlend E. Aasland2024-01-261-2/+2
| | | Fix usage in Modules, Objects, and Parser subdirectories.
* gh-113703: Correctly identify incomplete f-strings in the codeop module ↵Pablo Galindo Salgado2024-01-051-2/+6
| | | | (#113709)
* gh-112243: Don't include comments in f-string debug expressions (#112284)Pablo Galindo Salgado2023-11-201-6/+49
|
* gh-100445: Improve error message for unterminated strings with escapes (#100446)Shantanu2023-10-181-2/+16
|
* gh-107450: Check for overflow in the tokenizer and fix overflow test (#110832)Lysandros Nikolaou2023-10-161-0/+4
| | | | Co-authored-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-104169: Refactor tokenizer into lexer and wrappers (#110684)Lysandros Nikolaou2023-10-116-0/+1805
* The lexer, which include the actual lexeme producing logic, goes into the `lexer` directory. * The wrappers, one wrapper per input mode (file, string, utf-8, and readline), go into the `tokenizer` directory and include logic for creating a lexer instance and managing the buffer for different modes. --------- Co-authored-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>