[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67262: python-ts-mode cannot identify triple-quoted-strings
From: |
Yuan Fu |
Subject: |
bug#67262: python-ts-mode cannot identify triple-quoted-strings |
Date: |
Sat, 23 Dec 2023 19:10:05 -0800 |
> On Dec 23, 2023, at 4:45 PM, Dmitry Gutov <dmitry@gutov.dev> wrote:
>
> On 24/12/2023 01:51, Yuan Fu wrote:
>> Something like this? IMHO the code is easier to understand without the
>> syntax-propertize-rules.
>
> Sure, fine with me.
>
>> + (while (search-forward "\"\"\"" end t)+ (put-text-property
>> (1- start) start
>
> I think we also should support the triple-single-quotes, like
> python-syntax-propertize-function does.
>
>> + 'syntax-table (string-to-syntax "| "))
>> + (put-text-property end (min (1+ end) (point-max))
>> + 'syntax-table (string-to-syntax "| "))))))))
>
> The spaces after "|" seem unnecessary.
Thanks, fixed those things and pushed to emacs-29.
Yuan
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, (continued)
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, Yuan Fu, 2023/12/16
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, Dmitry Gutov, 2023/12/17
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, Eli Zaretskii, 2023/12/23
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, Yuan Fu, 2023/12/23
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, Dmitry Gutov, 2023/12/23
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, Yuan Fu, 2023/12/23
- bug#67262: python-ts-mode cannot identify triple-quoted-strings, Dmitry Gutov, 2023/12/23
- bug#67262: python-ts-mode cannot identify triple-quoted-strings,
Yuan Fu <=