From 1fdd3f64c920f0161b5ccbae8a28fb60be199e13 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Sat, 10 Jul 2021 20:25:30 +0800 Subject: [PATCH] Add some similar non-ASCII punctuation characters --- src/tree_sitter_rst/chars.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/tree_sitter_rst/chars.c b/src/tree_sitter_rst/chars.c index cbb67e1..f24c8bd 100644 --- a/src/tree_sitter_rst/chars.c +++ b/src/tree_sitter_rst/chars.c @@ -122,12 +122,12 @@ bool is_start_char(int32_t c) { const int32_t valid_chars[] = { '-', - ':', + ':', ':', '/', '\'', - '"', + '"', '“', '「', '<', - '(', + '(', "(", '[', '{', }; @@ -147,17 +147,17 @@ bool is_end_char(int32_t c) { const int32_t valid_chars[] = { '-', - '.', - ',', - ':', - ';', - '!', - '?', + '.', '。', + ',', ',', + ':', ':', + ';', ';', + '!', '!', + '?', '?', '\\', '/', '\'', - '"', - ')', + '"', '”', '」', + ')', ")", ']', '}', '>',