Mercurial > vim
view runtime/syntax/gkrellmrc.vim @ 34538:c865c2f93a04 v9.1.0171
patch 9.1.0171: Small split-move related improvements
Commit: https://github.com/vim/vim/commit/5cac1a9bee0798d70a7fd80363a1f697759638e8
Author: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Date: Tue Mar 12 21:11:39 2024 +0100
patch 9.1.0171: Small split-move related improvements
Problem: small improvements can be made to split-move related
functions.
Solution: apply them (Sean Dewar):
- Improve some doc comments (frame_flatten should still work for non-current
tabpages, despite the topframe check, which looks benign, though I'm unsure if
it's still needed; see #2467).
- f_win_splitmove should check_split_disallowed on wp, not targetwin, as that's
what win_splitmove checks (though it's probably unnecessary to check
b_locked_split at all; see #14109, which I hope to get around to finishing at
some point).
- Make winframe_restore restore window positions for the altframe, which
winframe_remove changes. This doesn't affect the prior behaviour, as we called
win_comp_pos after, but as win_comp_pos only works for curtab, and
winframe_remove supports non-current tabpages, we should undo it. Regardless,
this should mean we don't need win_comp_pos anymore; adjust tests to check
that window positions remain unchanged.
I'm not sure win_comp_pos is needed after last_status anyway if it doesn't
steal rows from another frame to make room for a new statusline, which
shouldn't be the case after winframe_remove? To be safe, I'll leave it as is.
closes: #14185
Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 12 Mar 2024 21:15:03 +0100 |
parents | 46763b01cd9a |
children |
line wrap: on
line source
" Vim syntax file " This is a GENERATED FILE. Please always refer to source file at the URI below. " Language: gkrellm theme files `gkrellmrc' " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> " Last Change: 2003-04-30 " URL: http://trific.ath.cx/Ftp/vim/syntax/gkrellmrc.vim " Setup " quit when a syntax file was already loaded if exists("b:current_syntax") finish endif setlocal iskeyword=_,-,a-z,A-Z,48-57 syn case match " Base constructs syn match gkrellmrcComment "#.*$" contains=gkrellmrcFixme syn keyword gkrellmrcFixme FIXME TODO XXX NOT contained syn region gkrellmrcString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline syn match gkrellmrcNumber "^-\=\(\d\+\)\=\.\=\d\+" syn match gkrellmrcNumber "\W-\=\(\d\+\)\=\.\=\d\+"lc=1 syn keyword gkrellmrcConstant none syn match gkrellmrcRGBColor "#\(\x\{12}\|\x\{9}\|\x\{6}\|\x\{3}\)\>" " Keywords syn keyword gkrellmrcBuiltinExt cpu_nice_color cpu_nice_grid_color krell_depth krell_expand krell_left_margin krell_right_margin krell_x_hot krell_yoff mem_krell_buffers_depth mem_krell_buffers_expand mem_krell_buffers_x_hot mem_krell_buffers_yoff mem_krell_cache_depth mem_krell_cache_expand mem_krell_cache_x_hot mem_krell_cache_yoff sensors_bg_volt timer_bg_timer syn keyword gkrellmrcGlobal allow_scaling author chart_width_ref theme_alternatives syn keyword gkrellmrcSetCmd set_image_border set_integer set_string syn keyword gkrellmrcGlobal bg_slider_meter_border bg_slider_panel_border syn keyword gkrellmrcGlobal frame_bottom_height frame_left_width frame_right_width frame_top_height frame_left_chart_overlap frame_right_chart_overlap frame_left_panel_overlap frame_right_panel_overlap frame_left_spacer_overlap frame_right_spacer_overlap spacer_overlap_off cap_images_off syn keyword gkrellmrcGlobal frame_bottom_border frame_left_border frame_right_border frame_top_border spacer_top_border spacer_bottom_border frame_left_chart_border frame_right_chart_border frame_left_panel_border frame_right_panel_border syn keyword gkrellmrcGlobal chart_in_color chart_in_color_grid chart_out_color chart_out_color_grid syn keyword gkrellmrcGlobal bg_separator_height bg_grid_mode syn keyword gkrellmrcGlobal rx_led_x rx_led_y tx_led_x tx_led_y syn keyword gkrellmrcGlobal decal_mail_frames decal_mail_delay syn keyword gkrellmrcGlobal decal_alarm_frames decal_warn_frames syn keyword gkrellmrcGlobal krell_slider_depth krell_slider_expand krell_slider_x_hot syn keyword gkrellmrcGlobal button_panel_border button_meter_border syn keyword gkrellmrcGlobal large_font normal_font small_font syn keyword gkrellmrcGlobal spacer_bottom_height spacer_top_height spacer_bottom_height_chart spacer_top_height_chart spacer_bottom_height_meter spacer_top_height_meter syn keyword gkrellmrcExpandMode left right bar-mode left-scaled right-scaled bar-mode-scaled syn keyword gkrellmrcMeterName apm cal clock fs host mail mem swap timer sensors uptime syn keyword gkrellmrcChartName cpu proc disk inet and net syn match gkrellmrcSpecialClassName "\*" syn keyword gkrellmrcStyleCmd StyleMeter StyleChart StylePanel syn keyword gkrellmrcStyleItem textcolor alt_textcolor font alt_font transparency border label_position margin margins left_margin right_margin top_margin bottom_margin krell_depth krell_yoff krell_x_hot krell_expand krell_left_margin krell_right_margin " Define the default highlighting hi def link gkrellmrcComment Comment hi def link gkrellmrcFixme Todo hi def link gkrellmrcString gkrellmrcConstant hi def link gkrellmrcNumber gkrellmrcConstant hi def link gkrellmrcRGBColor gkrellmrcConstant hi def link gkrellmrcExpandMode gkrellmrcConstant hi def link gkrellmrcConstant Constant hi def link gkrellmrcMeterName gkrellmrcClass hi def link gkrellmrcChartName gkrellmrcClass hi def link gkrellmrcSpecialClassName gkrellmrcClass hi def link gkrellmrcClass Type hi def link gkrellmrcGlobal gkrellmrcItem hi def link gkrellmrcBuiltinExt gkrellmrcItem hi def link gkrellmrcStyleItem gkrellmrcItem hi def link gkrellmrcItem Function hi def link gkrellmrcSetCmd Special hi def link gkrellmrcStyleCmd Statement let b:current_syntax = "gkrellmrc"