diff options
-rw-r--r-- | runtime/doc/eval.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index e51f0f5dfc..b45eceb97a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4725,9 +4725,10 @@ input({opts}) let fname = input("File: ", "", "file") < The optional highlight key allows specifying function which - will be used for highlighting. This function receives user - input as its only argument and must return a list of 3-tuples - [hl_start_byte, hl_end_byte + 1, hl_group] where + will be used for highlighting user input. This function + receives user input as its only argument and must return + a list of 3-tuples [hl_start_byte, hl_end_byte + 1, hl_group] + where hl_start_byte is the first highlighted byte, hl_end_byte is the last highlighted byte (+ 1!), hl_group is |:hl| group used for highlighting. @@ -4735,7 +4736,7 @@ input({opts}) Both hl_start_byte and hl_end_byte + 1 must point to the start of the multibyte character (highlighting must not break multibyte characters), hl_end_byte + 1 may be equal to the - input length. Start column must be in range [0, len(input)), + input length. Start column must be in range [0, len(input)), end column must be in range (hl_start_byte, len(input)], sections must be ordered so that next hl_start_byte is greater then or equal to previous hl_end_byte. |