Mercurial > vim
annotate runtime/syntax/upstreaminstalllog.vim @ 34674:bfd2c0032686 v9.1.0218
patch 9.1.0218: Unnecessary multiplications in backspace code
Commit: https://github.com/vim/vim/commit/8ede7a069419e0e01368c65a2d0c79d6332aa6cd
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Mar 28 10:30:08 2024 +0100
patch 9.1.0218: Unnecessary multiplications in backspace code
Problem: Unnecessary multiplications in backspace code, as
"col / ts * ts" is the same as "col - col % ts".
Solution: Change "col / ts * ts" to "col - col % ts". Adjust the loop
and the comments ins_bs() to be easier to understand. Update
tests to reset 'smarttab' properly.
(zeertzjq)
closes: #14308
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Mar 2024 10:45:04 +0100 |
parents | ceb5f21cda79 |
children |
rev | line source |
---|---|
4992 | 1 " Vim syntax file |
2 " Language: Innovation Data Processing UPSTREAMInstall.log file | |
3 " Maintainer: Rob Owens <rowens@fdrinnovation.com> | |
4 " Latest Revision: 2013-06-17 | |
5 | |
6 " Quit when a syntax file was already loaded | |
7 if exists("b:current_syntax") | |
8 finish | |
9 endif | |
10 | |
11 " Date: | |
12 syn match upstreaminstalllog_Date /\u\l\l \u\l\l\s\{1,2}\d\{1,2} \d\d:\d\d:\d\d \d\d\d\d/ | |
13 " Msg Types: | |
14 syn match upstreaminstalllog_MsgD /Msg #MSI\d\{4,5}D/ | |
15 syn match upstreaminstalllog_MsgE /Msg #MSI\d\{4,5}E/ | |
16 syn match upstreaminstalllog_MsgI /Msg #MSI\d\{4,5}I/ | |
17 syn match upstreaminstalllog_MsgW /Msg #MSI\d\{4,5}W/ | |
18 " IP Address: | |
19 syn match upstreaminstalllog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ | |
20 | |
21 hi def link upstreaminstalllog_Date Underlined | |
22 hi def link upstreaminstalllog_MsgD Type | |
23 hi def link upstreaminstalllog_MsgE Error | |
24 hi def link upstreaminstalllog_MsgW Constant | |
25 hi def link upstreaminstalllog_IPaddr Identifier | |
26 | |
27 let b:current_syntax = "upstreaminstalllog" |