comparison runtime/doc/syntax.txt @ 24911:fd37be6dc258

Update runtime files Commit: https://github.com/vim/vim/commit/2346a6378483c9871016f9fc821ec5cbea638f13 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 13 19:02:49 2021 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jun 2021 19:15:03 +0200
parents e69e7133c9cf
children 43593a5d873f
comparison
equal deleted inserted replaced
24910:77de4ae3e013 24911:fd37be6dc258
3428 3428
3429 *tex-matchcheck* *g:tex_matchcheck* 3429 *tex-matchcheck* *g:tex_matchcheck*
3430 Tex: Match Check Control~ 3430 Tex: Match Check Control~
3431 3431
3432 Sometimes one actually wants mismatched parentheses, square braces, 3432 Sometimes one actually wants mismatched parentheses, square braces,
3433 and or curly braces; for example, \text{(1,10] is a range from but 3433 and or curly braces; for example, \text{(1,10]} is a range from but
3434 not including 1 to and including 10}. This wish, of course, conflicts 3434 not including 1 to and including 10. This wish, of course, conflicts
3435 with the desire to provide delimiter mismatch detection. To 3435 with the desire to provide delimiter mismatch detection. To
3436 accommodate these conflicting goals, syntax/tex.vim provides > 3436 accommodate these conflicting goals, syntax/tex.vim provides >
3437 g:tex_matchcheck = '[({[]' 3437 g:tex_matchcheck = '[({[]'
3438 < which is shown along with its default setting. So, if one doesn't 3438 < which is shown along with its default setting. So, if one doesn't
3439 want [] and () to be checked for mismatches, try using > 3439 want [] and () to be checked for mismatches, try using >
4082 Since the "myVim" match comes after "myWord" it is the preferred match (last 4082 Since the "myVim" match comes after "myWord" it is the preferred match (last
4083 match in the same position overrules an earlier one). The "transparent" 4083 match in the same position overrules an earlier one). The "transparent"
4084 argument makes the "myVim" match use the same highlighting as "myString". But 4084 argument makes the "myVim" match use the same highlighting as "myString". But
4085 it does not contain anything. If the "contains=NONE" argument would be left 4085 it does not contain anything. If the "contains=NONE" argument would be left
4086 out, then "myVim" would use the contains argument from myString and allow 4086 out, then "myVim" would use the contains argument from myString and allow
4087 "myWord" to be contained, which will be highlighted as a Constant. This 4087 "myWord" to be contained, which will be highlighted as a Comment. This
4088 happens because a contained match doesn't match inside itself in the same 4088 happens because a contained match doesn't match inside itself in the same
4089 position, thus the "myVim" match doesn't overrule the "myWord" match here. 4089 position, thus the "myVim" match doesn't overrule the "myWord" match here.
4090 4090
4091 When you look at the colored text, it is like looking at layers of contained 4091 When you look at the colored text, it is like looking at layers of contained
4092 items. The contained item is on top of the item it is contained in, thus you 4092 items. The contained item is on top of the item it is contained in, thus you
4968 Unfortunately this means that it's not possible to get the same colors 4968 Unfortunately this means that it's not possible to get the same colors
4969 for each user. See |xterm-color| for info about color xterms. 4969 for each user. See |xterm-color| for info about color xterms.
4970 *tmux* 4970 *tmux*
4971 When using tmux you may want to use this in the tmux config: > 4971 When using tmux you may want to use this in the tmux config: >
4972 # tmux colors 4972 # tmux colors
4973 set -g default-terminal "xterm-256color" 4973 set -s default-terminal "tmux-256color"
4974 set -ag terminal-overrides ",xterm-256color:Tc" 4974 set -as terminal-overrides ",*-256color:Tc"
4975 < More info at: 4975 < More info at:
4976 https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-a-256-colour-terminal 4976 https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-a-256-colour-terminal
4977 https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-rgb-colour 4977 https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-rgb-colour
4978 4978
4979 The MS-Windows standard colors are fixed (in a console window), so 4979 The MS-Windows standard colors are fixed (in a console window), so