Files
neovim/runtime/syntax
Christian Clason 444a8b3ec6 vim-patch:6f85cec: 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: vim/vim#17323
closes: vim/vim#17735

6f85cec4fb

Co-authored-by: Zvezdan Petkovic <zpetkovic@acm.org>
2025-07-13 11:07:40 +02:00
..
2017-11-06 05:26:16 +01:00
2023-08-24 11:33:06 +09:00
2023-08-13 13:25:10 +01:00
2023-10-16 16:36:25 +08:00
2017-04-28 21:25:15 +02:00
2021-09-13 16:33:41 +02:00
2017-04-28 21:25:15 +02:00
2021-09-13 16:33:41 +02:00
2017-04-28 21:25:15 +02:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2017-11-06 05:26:16 +01:00
2024-02-21 06:30:18 +08:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2024-01-27 19:38:05 +01:00
2017-04-28 21:25:15 +02:00
2018-10-28 13:57:08 +01:00
2017-11-06 05:26:16 +01:00
2014-07-29 02:12:31 +00:00
2021-04-28 21:29:56 -04:00
2023-10-16 16:36:25 +08:00
2021-05-01 22:29:02 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2021-09-13 16:33:41 +02:00
2021-05-01 14:22:52 -04:00
2017-04-28 21:25:15 +02:00
2024-04-22 00:18:34 +02:00
2017-04-28 21:25:15 +02:00
2018-10-28 14:05:14 +01:00
2022-07-30 15:48:32 +02:00
2021-11-17 10:02:59 +01:00
2023-02-03 09:18:18 +01:00
2017-04-28 23:39:24 +02:00
2017-04-29 01:01:51 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2023-08-23 20:36:16 +01:00
2022-07-02 11:06:03 +02:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2017-11-07 23:07:03 +01:00
2023-08-24 11:33:06 +09:00
2022-07-26 11:26:23 +02:00
2017-04-28 21:25:15 +02:00
2021-04-27 21:31:28 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2016-04-18 21:50:37 -07:00
2017-04-28 21:25:15 +02:00
2022-11-10 09:05:25 +00:00
2017-11-06 05:26:16 +01:00
2014-07-29 02:12:31 +00:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2018-10-12 21:33:13 +02:00
2017-04-28 21:25:15 +02:00
2023-08-24 11:33:06 +09:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2022-09-28 12:48:36 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2024-01-22 23:40:50 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2022-03-30 12:12:12 +01:00
2023-12-15 10:30:13 +01:00
2018-10-28 14:05:14 +01:00
2017-11-06 05:26:16 +01:00
2019-08-01 22:48:28 +02:00
2022-06-17 20:38:21 +02:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2018-10-28 14:07:58 +01:00
2017-04-29 01:47:36 +02:00
2024-05-07 23:23:04 +02:00
2017-11-06 05:26:16 +01:00
2023-08-24 11:33:06 +09:00
2021-09-13 16:33:41 +02:00
2024-02-21 06:30:18 +08:00
2017-04-28 21:25:15 +02:00
2024-03-04 23:03:09 +01:00
2017-04-28 21:25:15 +02:00
2023-08-13 13:25:10 +01:00
2023-12-29 00:54:09 +01:00
2024-04-09 09:54:16 +02:00
2021-09-13 16:33:41 +02:00
2017-04-28 21:25:15 +02:00
2021-04-27 09:21:32 -04:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2016-06-07 06:46:37 -04:00
2021-04-27 09:21:28 -04:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2024-02-21 06:30:18 +08:00
2023-10-27 10:06:52 +02:00
2024-02-27 10:31:11 +01:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2023-02-03 09:18:18 +01:00
2017-04-28 21:25:15 +02:00
2022-09-28 12:48:36 +02:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2022-06-17 20:38:21 +02:00
2017-04-28 21:25:15 +02:00
2021-12-06 13:55:38 +01:00
2014-07-29 02:12:31 +00:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2021-05-02 11:51:38 -04:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2023-05-15 09:38:32 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2021-05-01 22:29:02 -04:00
2017-11-06 05:26:16 +01:00
2024-02-21 06:30:18 +08:00
2022-03-30 12:12:12 +01:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:13:55 +02:00
2023-08-24 11:33:06 +09:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2024-02-21 06:30:18 +08:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2022-07-07 08:15:33 +02:00
2017-04-28 21:25:15 +02:00
2023-08-24 11:33:06 +09:00
2021-09-13 16:33:41 +02:00
2017-11-07 20:03:24 +01:00
2023-08-31 10:58:54 +02:00
2024-02-02 08:59:49 +01:00
2017-04-28 21:25:15 +02:00
2021-05-02 13:00:38 -04:00
2017-11-06 05:26:16 +01:00
2023-08-16 09:15:39 +02:00
2017-04-28 21:13:55 +02:00
2023-08-24 11:33:06 +09:00
2017-04-28 21:25:15 +02:00
2022-09-18 15:20:20 +02:00
2022-08-31 08:08:51 +02:00
2017-04-28 21:25:15 +02:00
2021-09-13 06:05:27 -07:00
2021-05-01 22:29:03 -04:00
2023-12-29 00:54:09 +01:00
2023-12-29 00:54:09 +01:00
2022-09-10 14:54:13 +02:00
2017-11-07 23:07:03 +01:00
2022-01-11 14:14:17 +01:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2021-11-17 10:02:59 +01:00
2024-04-13 22:41:51 +02:00
2017-04-28 21:25:15 +02:00
2023-08-24 11:33:06 +09:00
2024-02-21 06:30:18 +08:00
2021-09-22 06:12:06 -07:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2021-05-02 11:51:38 -04:00
2023-08-24 11:33:06 +09:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2022-09-28 12:48:36 +02:00
2021-04-27 09:21:31 -04:00
2021-09-13 16:33:41 +02:00
2024-03-28 10:41:42 +01:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2019-08-02 16:20:22 +02:00
2021-04-27 09:21:27 -04:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2021-05-01 14:22:52 -04:00
2017-04-28 21:13:55 +02:00
2022-06-17 20:38:21 +02:00
2021-09-13 16:33:41 +02:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2022-06-17 20:38:21 +02:00
2021-04-27 09:21:30 -04:00
2022-06-17 20:38:21 +02:00
2017-04-28 21:25:15 +02:00
2023-08-13 11:53:51 +02:00
2017-04-28 21:25:15 +02:00
2021-04-27 09:21:30 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2021-04-27 21:31:28 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2023-12-22 01:07:50 +01:00
2024-04-27 11:01:14 +02:00
2021-09-04 19:49:17 +02:00
2017-04-28 21:25:15 +02:00
2021-08-15 11:02:19 +02:00
2017-04-28 21:25:15 +02:00
2023-09-17 22:52:56 +02:00
2023-08-09 22:37:49 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2023-04-23 15:22:55 +02:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:25:15 +02:00
2021-05-01 14:22:52 -04:00
2024-02-21 06:30:18 +08:00
2017-11-06 05:26:16 +01:00
2021-05-02 10:23:35 -04:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2022-03-20 10:48:10 +01:00
2024-02-21 06:30:18 +08:00
2023-08-24 11:33:06 +09:00
2017-11-06 05:26:16 +01:00
2023-04-23 15:22:55 +02:00
2017-11-06 05:26:16 +01:00
2023-12-16 15:57:22 +01:00
2017-04-28 21:25:15 +02:00
2021-05-01 22:29:02 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2023-08-24 11:33:06 +09:00
2023-05-15 09:38:32 +02:00
2023-11-12 10:53:57 +01:00
2021-05-02 12:44:04 -04:00
2021-05-02 12:44:04 -04:00
2022-06-14 08:52:04 +02:00
2024-01-26 08:51:13 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2023-08-13 13:25:10 +01:00
2024-02-21 06:30:18 +08:00
2022-10-17 08:19:48 +02:00
2023-12-22 01:07:50 +01:00
2022-06-15 09:20:32 +02:00
2017-04-28 21:25:15 +02:00
2019-08-02 16:20:22 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2023-12-28 10:42:09 +01:00
2023-06-11 12:40:22 +01:00
2021-05-01 23:47:11 -04:00
2017-04-28 23:49:16 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2018-10-28 14:01:46 +01:00
2021-05-01 22:29:02 -04:00
2017-04-28 21:13:55 +02:00
2017-11-06 05:26:16 +01:00
2023-08-23 20:36:16 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2021-05-01 22:29:02 -04:00
2017-04-29 01:47:36 +02:00
2015-12-17 21:56:41 -05:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2022-06-17 20:38:21 +02:00
2019-09-06 18:44:52 -07:00
2017-04-28 21:25:15 +02:00
2017-11-07 03:23:37 +01:00
2021-04-27 09:21:28 -04:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2023-04-23 15:22:55 +02:00
2018-10-29 08:26:47 +01:00
2023-10-16 16:36:25 +08:00
2023-08-13 13:25:10 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2021-09-13 16:33:41 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2024-01-16 23:08:41 +00:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2022-04-19 15:14:17 +02:00
2017-04-28 21:25:15 +02:00
2023-10-16 16:36:25 +08:00
2024-03-31 23:05:38 +02:00
2021-04-28 21:29:57 -04:00
2017-04-28 21:13:55 +02:00
2017-11-06 05:26:16 +01:00
2021-05-01 22:29:02 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2022-06-17 20:38:21 +02:00
2018-10-29 09:50:08 +01:00
2017-04-28 21:25:15 +02:00
2021-09-22 06:12:06 -07:00
2017-04-28 21:25:15 +02:00
2018-10-28 14:05:14 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2022-06-17 20:38:21 +02:00
2021-05-02 10:33:32 -04:00
2017-04-28 21:13:55 +02:00
2023-10-16 16:36:25 +08:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2021-05-01 23:19:57 -04:00
2017-04-28 21:13:55 +02:00
2021-05-01 22:29:02 -04:00
2017-11-06 05:26:16 +01:00
2021-05-02 12:03:34 -04:00
2021-05-02 12:03:34 -04:00
2017-04-28 21:25:15 +02:00
2021-05-02 12:44:04 -04:00
2017-04-28 21:25:15 +02:00
2023-08-24 11:33:06 +09:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2024-02-21 06:30:18 +08:00
2024-11-21 06:50:30 +08:00
2024-02-21 06:30:18 +08:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:25:15 +02:00
2021-05-02 12:53:49 -04:00
2019-07-29 20:50:07 +02:00
2023-08-09 22:37:49 +02:00
2021-05-02 12:44:04 -04:00
2022-01-23 18:38:41 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2018-10-29 09:55:07 +01:00
2023-08-23 20:31:07 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2022-12-08 16:33:38 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2024-02-21 06:30:18 +08:00
2017-04-28 21:25:15 +02:00
2024-02-21 06:30:18 +08:00
2017-11-06 05:26:16 +01:00
2014-07-29 02:12:31 +00:00
2021-05-02 12:53:49 -04:00
2021-05-01 22:29:02 -04:00
2021-11-17 10:02:59 +01:00
2024-02-21 06:30:18 +08:00
2021-05-01 22:29:02 -04:00
2018-10-29 23:54:15 +01:00
2021-04-27 22:40:39 -04:00
2021-05-01 22:29:02 -04:00
2023-09-02 11:08:29 +02:00
2023-09-13 17:23:45 +02:00
2017-04-28 21:25:15 +02:00
2017-11-07 03:23:37 +01:00
2022-03-20 10:48:10 +01:00
2017-04-28 21:25:15 +02:00
2017-11-07 01:27:14 +01:00
2023-09-11 10:05:54 +02:00
2017-04-28 21:25:15 +02:00
2016-04-18 21:36:16 -07:00
2021-04-27 09:21:31 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2022-10-17 08:19:48 +02:00
2022-06-17 20:38:21 +02:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2021-05-01 22:29:03 -04:00
2023-08-24 11:33:06 +09:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2015-11-01 21:27:28 +03:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2021-05-01 22:29:03 -04:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-11-07 01:46:19 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2023-08-24 11:33:06 +09:00
2017-04-28 21:25:15 +02:00
2024-02-21 06:30:18 +08:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2018-10-28 14:05:14 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2023-10-16 16:36:25 +08:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2023-08-24 11:33:06 +09:00
2023-08-24 11:33:06 +09:00
2018-10-29 09:37:13 +01:00
2017-04-28 21:25:15 +02:00
2023-08-24 11:33:06 +09:00
2023-12-09 07:45:31 +08:00
2017-04-28 21:25:15 +02:00
2022-09-18 15:20:20 +02:00
2024-04-29 05:50:13 +08:00
2024-03-31 23:05:20 +02:00
2024-03-31 23:05:20 +02:00
2021-09-13 16:33:41 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2017-04-28 21:25:15 +02:00
2021-05-01 22:29:03 -04:00
2021-04-27 09:21:34 -04:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2017-11-06 05:26:16 +01:00
2016-04-18 21:50:37 -07:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2024-02-21 06:30:18 +08:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2022-06-15 09:20:32 +02:00
2022-06-17 20:38:21 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:13:55 +02:00
2023-08-24 11:33:06 +09:00
2021-11-17 10:02:59 +01:00
2021-10-16 18:03:51 +02:00
2023-08-13 13:25:10 +01:00
2018-10-29 23:55:45 +01:00
2017-11-06 05:26:16 +01:00
2021-12-16 21:46:13 +01:00
2017-04-28 21:25:15 +02:00
2023-08-24 11:33:06 +09:00
2021-05-01 23:19:58 -04:00
2021-05-01 22:29:02 -04:00
2017-04-28 21:25:15 +02:00
2021-10-16 18:03:51 +02:00
2023-02-03 09:18:18 +01:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2022-06-17 20:38:21 +02:00
2023-08-24 11:33:06 +09:00
2023-10-16 16:36:25 +08:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2022-06-15 09:20:32 +02:00
2022-06-15 09:20:32 +02:00
2022-06-15 09:20:32 +02:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-11-06 05:26:16 +01:00
2017-04-28 23:14:36 +02:00
2023-08-09 22:34:02 +02:00
2017-11-06 05:26:16 +01:00
2017-04-28 21:13:55 +02:00
2016-01-25 21:45:26 +01:00
2019-07-28 11:48:07 +02:00
2016-01-25 21:45:26 +01:00
2019-08-02 16:20:23 +02:00
2021-12-06 13:55:38 +01:00
2022-09-18 15:20:20 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2023-08-13 13:25:10 +01:00
2021-04-27 22:40:39 -04:00
2023-08-13 13:25:10 +01:00
2015-08-15 15:25:30 -03:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:13:55 +02:00
2017-04-28 21:25:15 +02:00
2019-09-06 18:30:35 -07:00
2017-04-28 21:25:15 +02:00
2022-12-08 16:33:38 +01:00
2017-04-28 21:13:55 +02:00
2023-11-09 19:17:11 +01:00
2023-11-09 19:17:11 +01:00
2017-04-28 21:25:15 +02:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2017-04-28 21:25:15 +02:00
2014-07-29 02:12:31 +00:00
2017-04-28 21:25:15 +02:00
2017-11-06 05:26:16 +01:00
2021-05-01 22:29:02 -04:00
2024-02-21 06:30:18 +08:00
2017-11-06 05:26:16 +01:00
2017-05-01 13:32:51 +02:00
2023-06-11 12:40:22 +01:00
2022-06-15 09:20:32 +02:00
2014-07-29 02:12:31 +00:00
2021-04-27 09:21:34 -04:00
2024-02-21 06:30:18 +08:00
2024-02-21 06:30:18 +08:00
2017-04-28 21:25:15 +02:00
2023-10-19 10:20:55 -05:00
2023-08-23 20:36:16 +01:00
2022-12-08 16:33:38 +01:00
2023-09-02 11:08:29 +02:00

This directory contains Vim scripts for syntax highlighting.

These scripts are not for a language, but are used by Vim itself:

syntax.vim	Used for the ":syntax on" command.  Uses synload.vim.

manual.vim	Used for the ":syntax manual" command.  Uses synload.vim.

synload.vim	Contains autocommands to load a language file when a certain
		file name (extension) is used.  And sets up the Syntax menu
		for the GUI.

nosyntax.vim	Used for the ":syntax off" command.  Undo the loading of
		synload.vim.

The "shared" directory contains generated files and what is used by more than
one syntax.


A few special files:

2html.vim	Converts any highlighted file to HTML (GUI only).
colortest.vim	Check for color names and actual color on screen.
hitest.vim	View the current highlight settings.
whitespace.vim  View Tabs and Spaces.


If you want to write a syntax file, read the docs at ":help usr_44.txt".

If you make a new syntax file which would be useful for others, please send it
to the vim-dev mailing list <vim-dev@vim.org>.  Include instructions for
detecting the file type for this language, by file name extension or by
checking a few lines in the file. And please write the file in a portable way,
see ":help 44.12".

If you have remarks about an existing file, send them to the maintainer of
that file.  Only when you get no response send a message to the vim-dev
mailing list: <vim-dev@vim.org>.

If you are the maintainer of a syntax file and make improvements, send the new
version to the vim-dev mailing list: <vim-dev@vim.org>

For further info see ":help syntax" in Vim.