From d7b230840e6fbc493da8075218d55186d4dab4b6 Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 5 Nov 2021 12:30:41 -0400 Subject: Added '`' to autopair and typeover. Also, small code cleanup. --- docs/api.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'docs') diff --git a/docs/api.md b/docs/api.md index f8bb399c..43979815 100644 --- a/docs/api.md +++ b/docs/api.md @@ -6444,12 +6444,12 @@ See also: Map of auto-paired characters like parentheses, brackets, braces, and quotes. The ASCII values of opening characters are assigned to strings that contain complement -characters. The default auto-paired characters are "()", "[]", "{}", "''", and -"""". +characters. The default auto-paired characters are "()", "[]", "{}", "''", +"""", and "``". Usage: -* `textadept.editing.auto_pairs[60] = '>' -- pair '<' and '>'` +* `textadept.editing.auto_pairs[string.byte('<')] = '>'` * `textadept.editing.auto_pairs = nil -- disable completely` @@ -6469,13 +6469,13 @@ See also: #### `textadept.editing.brace_matches` Table of brace characters to highlight. -The ASCII values of brace characters are keys and are assigned non-`nil` values. The default -brace characters are '(', ')', '[', ']', '{', and '}'. +The ASCII values of brace characters are keys and are assigned `true`. The default brace +characters are '(', ')', '[', ']', '{', and '}'. Usage: -* `textadept.editing.brace_matches[60] = true -- '<'` -* `textadept.editing.brace_matches[62] = true -- '>'` +* `textadept.editing.brace_matches[string.byte('<')] = true` +* `textadept.editing.brace_matches[string.byte('>')] = true` #### `textadept.editing.comment_string` @@ -6493,12 +6493,12 @@ See also: #### `textadept.editing.typeover_chars` Table of characters to move over when typed. -The ASCII values of characters are keys and are assigned non-`nil` values. The default -characters are ')', ']', '}', ''', and '"'. +The ASCII values of characters are keys and are assigned `true` values. The default characters +are ')', ']', '}', ''', '"', and '`'. Usage: -* `textadept.editing.typeover_chars[62] = true -- '>'` +* `textadept.editing.typeover_chars[string.byte('>')] = true` --- -- cgit v1.2.3