Christian Clason
1e600d3b0a
fix(treesitter): validate language name
...
Problem: Some injections (like markdown) allow specifying arbitrary
language names for code blocks, which may be lead to errors when
looking for a corresponding parser in runtime path.
Solution: Validate that the language name only contains alphanumeric
characters and `_` (e.g., for `c_sharp`) and error otherwise.
(cherry picked from commit c032e83b22
)
2023-01-31 16:29:10 +00:00
..
2022-10-27 18:59:25 -07:00
2022-10-19 06:02:01 -07:00
2022-10-11 05:04:51 -07:00
2022-10-19 06:02:01 -07:00
2022-09-18 15:20:20 +02:00
2022-10-11 05:04:51 -07:00
2022-09-25 16:58:27 -07:00
2019-05-09 20:27:11 -04:00
2022-10-12 14:23:31 +02:00
2022-10-19 05:06:20 -07:00
2022-10-12 12:09:10 +00:00
2022-10-11 04:46:30 -07:00
2022-10-19 05:06:20 -07:00
2022-04-12 21:26:46 +08:00
2022-09-24 18:57:10 -07:00
2022-10-19 06:02:01 -07:00
2022-09-28 18:34:20 +02:00
2022-02-27 11:56:30 +01:00
2022-10-19 05:06:20 -07:00
2021-09-10 08:48:27 +02:00
2022-02-27 11:56:30 +01:00
2022-09-26 06:56:07 -07:00
2022-10-19 05:06:20 -07:00
2022-08-05 06:47:24 +08:00
2018-10-29 09:55:07 +01:00
2022-12-23 12:22:51 +01:00
2022-10-19 05:06:20 -07:00
2022-10-19 06:02:01 -07:00
2021-09-15 21:19:22 +01:00
2022-02-27 11:56:30 +01:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-10-12 05:08:18 -07:00
2022-10-19 05:06:20 -07:00
2022-10-19 06:02:01 -07:00
2021-09-09 00:37:59 -07:00
2022-01-04 11:07:40 -07:00
2022-10-19 05:06:20 -07:00
2022-12-30 17:56:49 +01:00
2022-12-23 12:31:37 +01:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-09-28 12:48:36 +02:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-10-19 06:02:01 -07:00
2022-08-02 13:54:41 +02:00
2022-10-12 05:08:18 -07:00
2022-10-19 05:06:20 -07:00
2022-05-13 08:28:10 +08:00
2018-10-29 09:55:07 +01:00
2022-09-26 17:43:23 +08:00
2022-10-11 05:04:51 -07:00
2022-10-11 04:19:38 -07:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2021-02-17 23:54:40 -05:00
2015-08-15 15:25:30 -03:00
2021-11-17 10:02:59 +01:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-09-28 18:34:20 +02:00
2022-03-23 19:52:50 +08:00
2019-03-26 19:55:33 +01:00
2022-03-17 13:21:24 +08:00
2022-10-12 05:08:18 -07:00
2021-09-10 08:48:27 +02:00
2022-10-19 05:06:20 -07:00
2022-07-06 19:34:24 +08:00
2022-12-20 04:16:49 +00:00
2022-10-19 05:06:20 -07:00
2022-10-19 06:02:01 -07:00
2022-12-29 04:42:08 +00:00
2022-09-26 17:43:23 +08:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-10-11 05:04:51 -07:00
2022-10-19 05:06:20 -07:00
2023-01-31 16:29:10 +00:00
2022-10-19 05:06:20 -07:00
2022-10-19 05:06:20 -07:00
2022-07-26 11:26:23 +02:00
2022-09-26 17:43:23 +08:00
2022-10-19 05:06:20 -07:00
2021-05-02 13:00:38 -04:00
2021-05-01 23:19:57 -04:00
2022-02-24 18:13:44 +08:00
2022-10-19 05:06:20 -07:00
2022-07-31 16:46:38 +08:00
2022-02-24 18:13:44 +08:00
2022-03-18 00:21:41 +06:00
2021-09-08 07:24:12 -07:00
2022-02-24 18:13:44 +08:00
2021-05-01 22:29:02 -04:00
2021-05-02 12:53:49 -04:00
2021-11-22 10:53:57 +01:00
2022-05-12 07:13:45 -07:00
2022-09-26 17:43:23 +08:00
2021-05-01 22:29:03 -04:00
2021-04-27 09:21:33 -04:00
2019-11-01 13:43:20 +09:00
2018-10-29 10:01:44 +01:00
2021-04-29 09:27:19 -04:00
2018-10-29 10:01:44 +01:00
2022-10-19 05:06:20 -07:00
2021-04-29 20:42:16 -04:00
2021-04-29 20:42:16 -04:00
2018-10-29 10:01:44 +01:00
2022-06-23 15:57:51 +02:00
2022-10-19 05:06:20 -07:00
2022-07-01 10:17:39 +08:00
2019-03-26 19:55:33 +01:00
2021-04-27 09:21:34 -04:00
2022-10-19 05:06:20 -07:00
2022-10-11 05:04:51 -07:00
2022-08-02 13:54:41 +02:00
2021-05-01 23:19:57 -04:00
2022-12-13 01:44:29 +00:00
2022-07-25 09:47:28 +08:00
2022-09-26 06:56:07 -07:00