Commit Graph

26 Commits

Author SHA1 Message Date
a24f5be86d runtime(python): highlight bytes in python
- Highlight bytes literals
- Do not highlight Unicode escape sequences in bytes literals

fixes: #14033
fixes: #17726
closes: #17728

Signed-off-by: Rob B <github@0x7e.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-07-14 22:30:59 +02:00
6f85cec4fb runtime(python): update rendering of Unicode named literals in syntax script
This change:

* enforces that the alias starts with a letter
* allows the other words in an alias to be separated by either a space
  or a hyphen, but not both or double separators
* allows only a letter after space, possibly followed by letters or
  digits
* allows both letters and digits after a hyphen

Tested with:

    a = '\N{Cyrillic Small Letter Zhe} is pronounced as zh in pleasure'
    b = '\N{NO-BREAK SPACE} is needed here'
    # ... other tests here
    r = '\N{HENTAIGANA LETTER E-1} is a Japanese hiragana letter archaic ye'
    s = '\N{CUNEIFORM SIGN NU11 TENU} is a correction alias'
    t = '\N{RECYCLING SYMBOL FOR TYPE-1 PLASTICS} base shape is a triangle'
    print(a)
    print(b)
    print(r)
    print(s)
    print(t)

The tests confirm the behavior and are selected from real Unicode
tables/aliases to check these combinations based on the specification.

fixes: #17323
closes: #17735

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-07-13 08:23:24 +02:00
71badf9547 Update runtime files 2023-04-22 22:40:14 +01:00
dd60c365cd Update runtime files 2023-02-27 15:49:53 +00:00
2ecbe53f45 Update runtime files 2022-07-29 21:36:21 +01:00
0e6adf8a29 Update runtime files 2021-12-16 14:41:10 +00:00
9faec4e3d4 Update runtime files. 2021-02-27 16:38:07 +01:00
b4ada79aa7 Runtime file updates. 2016-10-30 21:55:26 +01:00
d07969093a Updated runtime files. 2016-09-16 20:02:31 +02:00
f37506f60f Updated runtime files. Remove HiLink commands. 2016-08-31 22:22:10 +02:00
89bcfda683 Updated runtime files. Remove version checks for Vim older than 6.0. 2016-08-30 23:26:57 +02:00
e4a3bcf28d Updated runtime files. Add Scala files. 2016-08-26 19:52:37 +02:00
6f1d9a096b Updated runtime files. 2016-07-24 14:12:38 +02:00
77cdfd1038 Updated runtime files. 2016-03-12 12:57:59 +01:00
ca63501fbc Update various runtime files. 2015-09-25 20:34:21 +02:00
f91328100d Updated and new runtime files. 2015-07-21 19:19:13 +02:00
541f92d6cf Updated runtime files. 2015-06-19 13:27:23 +02:00
07d87790f1 Update runtime files. Make matchparen plugin backwards compatible.
Add json filetype.
2014-07-19 14:04:47 +02:00
34700a6a15 Updated runtime files. 2013-03-07 13:20:54 +01:00
006590697c Updated runtime files. 2010-09-21 22:34:02 +02:00
5c73622a90 Update runtime files. 2010-01-06 20:54:52 +01:00
c81e5e79a0 updated for version 7.1a 2007-05-05 18:24:42 +00:00
1423b9d3b8 updated for version 7.0 2006-05-07 15:16:06 +00:00
9c102387af updated for version 7.0g02 2006-05-03 21:26:49 +00:00
e2f98b95c8 updated for version 7.0c03 2006-03-29 21:18:24 +00:00
071d4279d6 updated for version 7.0001 2004-06-13 20:20:40 +00:00