aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/vim.vim
Commit message (Collapse)AuthorAge
* vim-patch:5cbadec: runtime(syntax): Add Regexp default highlight groupzeertzjq2026-10-03
| | | | | | | | | | | Most syntax files currently use String or Normal for highlighting regular expression literals; these should have a dedicated group. closes: vim/vim#21141 https://github.com/vim/vim/commit/5cbadec2e63b0e38c7c1fe4ae9c07b07123299b8 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:af6f220: runtime(vim): Update base syntax, improve autoload prefix ↵Takumi Katase2026-09-17
| | | | | | | | | | | | | | | | | matching (#41945) - Tighten autoload prefix matching, e.g., foo#bar#baz - Disallow erroneously concatenated map special arguments, e.g., :map <bufferexpr> lhs rhs closes: vim/vim#21285 https://github.com/vim/vim/commit/af6f220da5c8dfc8368c654d9e67330ea4b7b68e Skip the hunks to runtime/syntax/generator/vim.vim.base and the testdir dumps: the generator layout and syntax testdir only exist in Vim; Nvim keeps the handwritten part in runtime/syntax/vim.vim. Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:2dd6535: runtime(vim): Update base syntax, match syn-sync skip ↵zeertzjq2026-09-13
| | | | | | | | | | | patterns (#41889) Fix matching of the pattern arg in a :syn-sync-match skip command. closes: vim/vim#21289 https://github.com/vim/vim/commit/2dd65358e1873860bfb83c914b3aac059c708bfb Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:9a899af: runtime(vim): Fix heredoc triggering misidentifcation of ↵zeertzjq2026-06-29
| | | | | | | | | | | | | | | | | | | | Vim9 script The following let-heredoc can cause legacy scripts to be misidentified as Vim9 script if it appears early in the file. Only match :vim9script at the start of a line where it sensibly belongs. let x =<< trim LINES vim9script ... LINES fixes: vim/vim#20647 (reported by Maxim Kim). closes: vim/vim#20654 https://github.com/vim/vim/commit/9a899af7e8e74bb094cfdfda857580b2e8ddf840 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:78094ff: runtime(vim): Update base syntax, simplify function call ↵zeertzjq2026-06-12
| | | | | | | | | | | | | | | | matching (#40202) - Explicitly match the dot accessor - Exclude the qualifier when matching qualified function calls The dot accessor lookbehind on builtin function calls was slow, matching across expression based dictionary accessors was visually inconsistent, and it's arguably more semantically correct. closes: vim/vim#20481 https://github.com/vim/vim/commit/78094ff1d7894d4d782b9f8fa2a8817e59e9d374 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:dfdeba1: runtime(vim): Update base syntax, fix mismtatched :def ↵zeertzjq2026-05-26
| | | | | | | | | | | | | return type Anchor the return type separator ':' with a lookbehind as the relevant nextgroup options use skipwhite. closes: vim/vim#20319 https://github.com/vim/vim/commit/dfdeba16d7930e4a1fb8cf0003656b13da8ffffc Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:1c88aee: runtime: Remove wrong syn oneline keyword from a few ↵zeertzjq2026-04-21
| | | | | | | | | | | | | | syntax files (#39266) Also: - drop a few trailing whitespaces - mark the oneline keyword for :syn keyword as error in the Vim syntax script, add tests for it. closes: vim/vim#20018 https://github.com/vim/vim/commit/1c88aee1fa720aea07e133f32645914dcddd3435 Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
* vim-patch:b901fa9: runtime(vim): Update base syntax, improve :syntax group ↵zeertzjq2026-03-01
| | | | | | | | | | | | | | | | | | | list arg matching (#38112) Attempt to match all variations of group name and comma separator across continuation lines. Fixes issues: - vim/vim#18491 (Two ")"s are incorrectly colored 'vimOperError' in syntax/mail.vim), reported by @lkintact - vim/vim#19366 (highlight error for contains elements in a new line), reported by Maxim Kim fixes: vim/vim#18491 fixes: vim/vim#19366 https://github.com/vim/vim/commit/b901fa9a6adbc0b1404b1e6c19f83941820b1d91 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:3794d9b: runtime(vim): Error codes should not be highlighed with ↵zeertzjq2026-02-16
| | | | | | | | | | vim9CommentTitle closes: vim/vim#19390 https://github.com/vim/vim/commit/3794d9b33ce32492b84565d55a538bcfc1fcfbb6 Co-authored-by: Peter Kenny <github.com@k1w1.cyou>
* vim-patch:2e4c98b: runtime(vim): Update base syntax, match Vim9 :unlet ↵zeertzjq2026-02-01
| | | | | | | | | command (#37662) closes: vim/vim#19290 https://github.com/vim/vim/commit/2e4c98b6f3db7d8e43645ccdf0b293cb07507ee1 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:9.1.2078: A few more typos in various files (#37368)zeertzjq2026-01-12
| | | | | | | | | | | Problem: A few more typos in various files Solution: Fix those (zeertzjq, antonkesy) related: neovim/neovim#37348 closes: vim/vim#19153 https://github.com/vim/vim/commit/6a2b5b2246833f7922e38eabab7090e29e89c3a1 Co-authored-by: Anton Kesy <anton@kesy.de>
* vim-patch:c4dc4d8: runtime(syntax-tests): Add :help command termination ↵zeertzjq2026-01-12
| | | | | | | | | | | | | | | tests (#37366) Problem: The :help command lacks command termination tests. Solution: Add tests for command termination at "|", "^M" and "^J". - Check special handling of "|" in arguments. - Update the Vim syntax file. closes: vim/vim#18932 https://github.com/vim/vim/commit/c4dc4d8f1eca8e3989c5f7770b062e3cf344a936 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:927ad16: runtime(vim): Update base syntax, match full :help ↵zeertzjq2025-12-09
| | | | | | | | | command (#36882) closes: vim/vim#18833 https://github.com/vim/vim/commit/927ad166a4a24f11db2d065b5f4db8f24b754696 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:a4c43a6: runtime(vim): Update base syntax, match full :language ↵zeertzjq2025-12-01
| | | | | | | | | command (#36766) closes: vim/vim#18808 https://github.com/vim/vim/commit/a4c43a6cf54b1916339641439b74f05499a4d9dd Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:8da8862: runtime(vim): Update base syntax, match full :history ↵zeertzjq2025-11-21
| | | | | | | | | command (#36655) closes: vim/vim#18784 https://github.com/vim/vim/commit/8da886269a46204180102b932f528cd6dfa472be Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:ea86e53: runtime(vim): Update base syntax, match :debug and ↵zeertzjq2025-11-21
| | | | | | | | | | | | :break* commands Match full :debug, :breakadd, :breakdel and :breaklist commands. closes: vim/vim#18748 https://github.com/vim/vim/commit/ea86e53c2b2d4c55d1878d7226b10005cb2e0326 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:f46616f: runtime(vim): Update base syntax and generator, match :cd ↵zeertzjq2025-11-15
| | | | | | | | | | | | | | | commands Match :cd commands explicitly. fixes: vim/vim#17964 closes: vim/vim#18736 Reported by Maxim Kim. https://github.com/vim/vim/commit/f46616f0c4b7254cfe2153c845f33c347ef67446 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:4f19d27: runtime(vim): Update base syntax, match :prompt command argszeertzjq2025-11-15
| | | | | | | | closes: vim/vim#18732 https://github.com/vim/vim/commit/4f19d2768a2251d03acd3a91f93cb3eb39595803 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:fe24972: runtime(vim): Update base syntax, refine object ↵zeertzjq2025-11-15
| | | | | | | | | | | | | constructor matching Match "object" and "<" ... ">" separately with dedicated syntax groups to allow for highlighting distinct from that generally used for types. closes: vim/vim#18721 https://github.com/vim/vim/commit/fe249721390cae1ad26f8637bdfe4716bb5bb241 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:e1e3474: runtime(vim): Update base syntax, fix :augroup error ↵zeertzjq2025-11-11
| | | | | | | | | | | | matching (#36512) Only terminate the :augroup END argument at whitespace, comments and trailing bars. closes: vim/vim#18711 https://github.com/vim/vim/commit/e1e347475eea179e6b0bb9a91d82221ad29edc23 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:8869800: runtime(vim): Update base syntax, match :*do command argzeertzjq2025-11-10
| | | | | | | | | | Match the Ex command arg to all :*do commands. closes: vim/vim#18700 https://github.com/vim/vim/commit/8869800f704ea0568d4741b960fc547f6853255f Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:59f0ea5: runtime(vim): Update base syntax, match Vim9 object type ↵zeertzjq2025-11-10
| | | | | | | | | | | | | constructor fixes: vim/vim#18677. closes: vim/vim#18691 Reported by Aliaksei Budavei. https://github.com/vim/vim/commit/59f0ea5b3eb444748c83340f1dcebb182db28b40 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:433d2ab: runtime(vim): Update base syntax, match Vim9 lambda arg ↵zeertzjq2025-11-10
| | | | | | | | | | | | | to :defer Support added in commit 21ef3c6e5972bbe8ab61195f98ccb85048b78985. See: vim/vim#18643 closes: vim/vim#18645 https://github.com/vim/vim/commit/433d2ab2066c0590e43f8396cd830a4ff62e8769 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:461dd9a: runtime(vim): 'iskeyword' setting not correctly restored ↵zeertzjq2025-11-05
| | | | | | | | | (#36453) fixes: vim/vim#18673 https://github.com/vim/vim/commit/461dd9aca68e45a437a559296e21066b6ca87be3 Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:842c778: runtime(vim): Update base syntax, improve :@ highlightingzeertzjq2025-10-27
| | | | | | | | | | | - Highlight :@ as a normal Ex command rather than something special. - Fix erroneous matching of the Ex command as a register variable. closes: vim/vim#18624 https://github.com/vim/vim/commit/842c7788a5af903df6f8c0dffefaf1607c8c8ed8 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:7dba04f: runtime(doc,vim): Update base syntax, match full :syntime ↵zeertzjq2025-10-27
| | | | | | | | | | | command - Use the optional tail command-name spec at :help :syntime. - Match full :syntime command and highlight args. https://github.com/vim/vim/commit/7dba04f15cc43562c67c4cd0db82c2165c1cdb40 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:da5b600: runtime(vim): Update base syntax, match :terminal commandzeertzjq2025-10-27
| | | | | | | | | | Match the full :terminal command syntax. closes: vim/vim#18367 https://github.com/vim/vim/commit/da5b6007fb75d4a0fb20583ffd298f032acdfc0d Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:ce5f9f4: runtime(vim): Update base syntax, allow legacy script ↵zeertzjq2025-10-09
| | | | | | | | | | comments after :eval closes: vim/vim#18522 https://github.com/vim/vim/commit/ce5f9f45afebd9f3d06dc4bf240f8c538560709e Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:9.1.1834: MS-Windows: not possible to highlight the title barzeertzjq2025-10-09
| | | | | | | | | | | | | | | | | | | | | | Problem: MS-Windows: not possible to highlight the title bar Solution: Make the title/caption bar configurable by introducing the 'go-C' option value which allows to highlight it using the TitleBar and TitleBarNC highlighting groups (Mao-Yining). Introduce titlebar color customization for Windows 11 GUI through highlight groups and new 'guioptions' flag: - Add 'C' flag to enable titlebar color customization (opt-in) - New highlight groups: TitleBar (active) and TitleBarNC (inactive) - Uses DWMWA_CAPTION_COLOR and DWMWA_TEXT_COLOR DWM attributes - Dynamically loads dwmapi.dll for Windows 11 compatibility - Defaults to system colors when set to NONE or feature disabled closes: vim/vim#18449 https://github.com/vim/vim/commit/2c093682738cb2e01864aa2934b7bafdb277c011 Co-authored-by: Mao-Yining <mao.yining@outlook.com>
* vim-patch:0977c8b: runtime(vim): Update base syntax, contain user command ↵zeertzjq2025-10-02
| | | | | | | | | | | | | | | | replacement text (#35979) Ensure that :command replacement text terminates at the end of the logical line. Add :command to the generator exclusion list. fixes: vim/vim#18414 (@Dougaak) fixes: vim/vim#18448 (Maxim Kim) closes: vim/vim#18415 https://github.com/vim/vim/commit/0977c8b03e7eca56bb640acd2fd1c6f5fc825899 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:ae20d73: runtime(vim): Update base syntax, improve ↵zeertzjq2025-09-29
| | | | | | | | | | | | line-continuation skip patterns Factor out the common prefix in line-continuation :syn-skip patterns. closes: vim/vim#18416 https://github.com/vim/vim/commit/ae20d732ae691793297139f688936c602c674999 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:f4a6acd: runtime(vim): Update base syntax, allow Vim9 :echo tail ↵zeertzjq2025-09-29
| | | | | | | | | | | | | comments - Match comments after Vim9 :echo and :execute. - Match comments after Vim9 and legacy :eval. closes: vim/vim#18420 https://github.com/vim/vim/commit/f4a6acd86edfdaf0f2c1fc4fb0c6533069d0469e Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:7bb733f: runtime(vim): Update base syntax, match null_tuple literalzeertzjq2025-09-29
| | | | | | | | closes: vim/vim#18404 https://github.com/vim/vim/commit/7bb733f6bf727efe3455c3355a38430ee9cd9cc7 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:57d243e: runtime(vim): Update base syntax, fix indented Vim9 ↵zeertzjq2025-09-29
| | | | | | | | | | | | | | :redir highlighting Include post operator whitespace in the Vim9 variable assignment lookahead so that "redir =>" doesn't match as an assignment. fixes: vim/vim#18319 closes: vim/vim#18323 https://github.com/vim/vim/commit/57d243e27da804489e256add0398efb9310a4353 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:6f97624: runtime(vim): Update base syntax, fix Vim9 :for loop ↵zeertzjq2025-09-29
| | | | | | | | | | | | | | | variable highlighting Highlight the iteration variable's type in Vim9 :for {var} loops. Reported by Aliaksei Budavei. fixes: vim/vim#17961 closes: vim/vim#18163 https://github.com/vim/vim/commit/6f97624e115eb793e5b486244683ecb86959d859 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:4de931d: runtime(vim): Update base syntax, match enum constructor ↵zeertzjq2025-09-29
| | | | | | | | | | | type args closes: vim/vim#17840 https://github.com/vim/vim/commit/4de931daae88784aacd1dc4ecd92ca6fb4a45977 Co-authored-by: Doug Kearns <dougkearns@gmail.com> Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
* vim-patch:72473ce: runtime(vim): Update base syntax, match generic functionszeertzjq2025-09-29
| | | | | | | | | | Match Vim9 generic functions, added in vim/vim#17313. closes: vim/vim#17722 https://github.com/vim/vim/commit/72473ce9f8e111072360a7589e2c5bee079305da Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:b1446df: runtime(vim): Update base syntax, match :wincmd (#35898)zeertzjq2025-09-24
| | | | | | | | | | | Match the full :wincmd command syntax. Allow for oneline assignment to Vim9 variables named winc[md]. Fixes vim/vim#18368. https://github.com/vim/vim/commit/b1446dfd23eb95743cda8cec8a6aac6e697c5fbe Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:9.1.1742: complete: preinsert does not work well with ↵zeertzjq2025-09-09
| | | | | | | | | | | | | | | | | | | | 'autocomplete' (#35692) Problem: complete: preinsert does not work well with preinsert Solution: Make "preinsert" completeopt value work with autocompletion (Girish Palya) This change extends Insert mode autocompletion so that 'preinsert' also works when 'autocomplete' is enabled. Try: `:set ac cot=preinsert` See `:help 'cot'` for more details. closes: vim/vim#18213 https://github.com/vim/vim/commit/fa6fd41a943e6442c1a2ce6b0a237298b00ecca0 Co-authored-by: Girish Palya <girishji@gmail.com>
* vim-patch:7239d95: runtime(vim): Update base syntax, match :defer command ↵zeertzjq2025-08-30
| | | | | | | | | argument (#35547) closes: vim/vim#18159 https://github.com/vim/vim/commit/7239d95bf2e35acd2746c933c66677137ac93cfa Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:b88f9e4: runtime(vim): Update base syntax, fix :map termination in ↵zeertzjq2025-08-02
| | | | | | | | | | :command RHS (#35131) Ensure :map (and :abbreviate) terminate at | when included in :command replacement strings containing commands separated by line continuations. https://github.com/vim/vim/commit/b88f9e4a04ce9fb70abb7cdae17688aa4f49c8c9 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:9.1.1576: cannot easily trigger wildcard expansion (#35022)zeertzjq2025-07-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: cannot easily trigger wildcard expansion Solution: Introduce wildtrigger() function (Girish Palya) This PR introduces a new `wildtrigger()` function. See `:h wildtrigger()` `wildtrigger()` behaves like pressing the `wildchar,` but provides a more refined and controlled completion experience: - Suppresses beeps when no matches are found. - Avoids displaying irrelevant completions (like full command lists) when the prefix is insufficient or doesn't match. - Skips completion if the typeahead buffer has pending input or if a wildmenu is already active. - Does not print "..." before completion. This is an improvement on the `feedkeys()` based autocompletion script given in vim/vim#16759. closes: vim/vim#17806 https://github.com/vim/vim/commit/b486ed8266d3b8cd1ffab7d7f302fbd6d5a55c70 While at it, also make Ctrl-Z trigger search completion. Co-authored-by: Girish Palya <girishji@gmail.com>
* vim-patch:2f7c957: runtime(vim): Update base syntax and generator, improve ↵zeertzjq2025-07-19
| | | | | | | | | | | | | | command/function distinction - Match Ex command modifiers and functions with the same name correctly. E.g., :browse and browse(). - Match full :eval command. closes: vim/vim#17789 https://github.com/vim/vim/commit/2f7c957c8d89b0fe06896ee0e2eaa1c3c0b2b485 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:97501af: runtime(vim): Update base syntax, match "any" type distinctlyzeertzjq2025-07-19
| | | | | | | | | | | | | Allow for special highlighting of the "any" Vim9 type. Addresses comment https://github.com/vim/vim/pull/17722#issuecomment-3075531052 closes: vim/vim#17769 https://github.com/vim/vim/commit/97501afda34c77b07782a365fcc2299165e66f69 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:9.1.1544: :retab cannot be limited to indentation only (#34939)zeertzjq2025-07-18
| | | | | | | | | | | Problem: :retab cannot be limited to indentation only Solution: add the optional -indentonly parameter (Hirohito Higashi) closes: vim/vim#17730 https://github.com/vim/vim/commit/836e54f5de8479a39f6d1dd4a13202af0e447311 Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
* vim-patch:175662f: runtime(vim): Update base syntax, fix incorrect function ↵zeertzjq2025-07-17
| | | | | | | | | | | | | | | | error (#34975) Don't match lower-case function names as errors when the qualifier includes a dict/list accessor. This is a less than perfect fix until qualified function call matching is reworked. fixes: vim/vim#17766 closes: vim/vim#17780 https://github.com/vim/vim/commit/175662f4f2a046a5ca33338cd3c1ca017e135ee8 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:ce1d196: runtime(vim): Update base syntax, improve :match ↵zeertzjq2025-07-13
| | | | | | | | | | | | | highlighting (#34912) - Match the range prefix separately as a count. - Match an explicit count of 1, rarely used but seen in the wild. - Allow whitespace between the count and command. closes: vim/vim#17717 https://github.com/vim/vim/commit/ce1d1969f304af122eaf10b405dad013ac0246f7 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:6ac2e4a: runtime(vim): Update base syntax, improve function call ↵zeertzjq2025-07-11
| | | | | | | | | | | | | | | highlighting (#34874) - Match more function calls. - Contain function call syntax groups. - Improve differentiation between Ex commands and builtin functions with the same name. Remove special cases. Command modifiers are not currently well differentiated from functions. closes: vim/vim#17712 https://github.com/vim/vim/commit/6ac2e4aa0a565dc8cac73b33c9c099cea77212a8 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:5911ac5: runtime(vim): Update base-syntax, match :filetype in ↵zeertzjq2025-07-06
| | | | | | | | | | functions closes: vim/vim#17671 https://github.com/vim/vim/commit/5911ac5023594a55a3654c9050d4924ca3218d22 Co-authored-by: Doug Kearns <dougkearns@gmail.com>
* vim-patch:a8b8660: runtime(vim): Update base-syntax, match escape sequences ↵zeertzjq2025-07-06
| | | | | | | | | | | | | | | in :command blocks - Match escape sequences in :command replacement blocks. - Match :substitute after escape sequences (a temporary fix until Ex commands are contained). fixes: vim/vim#17326 closes: vim/vim#17663 https://github.com/vim/vim/commit/a8b86605f39f168178dfbdc1971df4e19c636310 Co-authored-by: Doug Kearns <dougkearns@gmail.com>