diff options
author | mitchell <none@none> | 2021-11-05 12:30:41 -0400 |
---|---|---|
committer | mitchell <none@none> | 2021-11-05 12:30:41 -0400 |
commit | d7b230840e6fbc493da8075218d55186d4dab4b6 (patch) | |
tree | aec28045b2b14c8cbed291cadafe5f070cb188f7 /docs | |
parent | 3a825add3b5c2919ea2f88e027e45c2172575e1f (diff) |
Added '`' to autopair and typeover.
Also, small code cleanup.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api.md | 20 |
1 files changed, 10 insertions, 10 deletions
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` <a id="textadept.editing.autocompleters"></a> @@ -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` <a id="textadept.editing.comment_string"></a> #### `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` --- <a id="textadept.file_types"></a> |