summaryrefslogtreecommitdiffstats
path: root/runtime
AgeCommit message (Collapse)Author
2024-04-09runtime(compiler): fix inaccuracies in pandoc compiler (#14467)Enno
as kindly pointed out by @Freed-Wu Signed-off-by: Enno <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-09runtime(vim): Update base-syntax, no curly-brace names in Vim9 script (#14466)dkearns
Remove curly-brace name matching for :def functions. This is not supported in Vim9 script. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-09patch 9.1.0282: Several small issues in doc and testsv9.1.0283Christian Brabandt
Problem: Wrong doc style for pandoc syntax description, Test_diff_eob_halfpage() may fail depending on screen size, using braces in highlight.c when not necessary Solution: Fix pandoc documentation, make sure the window for the test has 7 lines, remove the braces. Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-08runtime(cuda): Update cuda keywords, remove uncommonly used enumeration ↵jiangyinzuo
constants closes: #14406 Signed-off-by: jiangyinzuo <jiangyinzuo@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-08patch 9.1.0279: filetype: roc files are not recognizedv9.1.0279nat-418
Problem: filetype: roc files are not recognized Solution: Detect '*.roc' files as roc filetype, add a basic filetype plugin (nat-418) closes: #14416 Signed-off-by: nat-418 <93013864+nat-418@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-08patch 9.1.0278: filetype: zathurarc files not recognizedv9.1.0278Wu, Zhenyu
Problem: filetype: zathurarc files not recognized Solution: Detect '.zathurarc' files as zathurarc filetype, add zathurarc filetype (Wu, Zhenyu) closes: #14380 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-08patch 9.1.0277: Cannot highlight the Command-linev9.1.0277Shougo Matsushita
Problem: Cannot highlight the Command-line Solution: Add the MsgArea highlighting group (Shougo Matsushita) closes: #14327 Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-08patch 9.1.0276: No pandoc syntax supportv9.1.0276Wu, Zhenyu
Problem: No pandoc syntax support Solution: Add pandoc syntax and compiler plugins (Wu, Zhenyu, Konfekt) closes: #14389 Co-authored-by: Konfekt <Konfekt@users.noreply.github.com> Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-08patch 9.1.0275: filetype: R history files are not recognizedv9.1.0275Wu, Zhenyu
Problem: filetype: R history files are not recognized Solution: Detect '.Rhistory' files as r filetype (Wu, Zhenyu) closes: #14440 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-07patch 9.1.0273: filetype: keymap files are not recognizedv9.1.02730xadk
Problem: filetype: keymap files are not recognized Solution: Detect '*.keymap' files as Device Tree Files (0xadk) closes: #14434 Signed-off-by: 0xadk <0xadk@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-07runtime(vim): Update syntax generator, autocmd event list parsingDoug Kearns
Track changes to the autocommand event list introduced in commit 78d742a (Patch 9.1.0256). closes: #14430 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-07runtime(doc): Normalise builtin-function optional parameter formattingDoug Kearns
These should generally be formatted as func([{arg}]) and referenced as {arg} in the description. closes: #14438 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-05runtime: fix :compiler leaving behind a g:makeprg variable (#14414)zeertzjq
Problem: :compiler may leave behind a g:makeprg variable after #14336. Solution: Use a script local variable. Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-05runtime: Remove more fallback :CompilerSet definitions from compiler plugins ↵Yinzuo Jiang
(#14413) Continue with #14399 Signed-off-by: jiangyinzuo <jiangyinzuo@foxmail.com> Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-05patch 9.1.0266: filetype: earthfile files are not recognizedv9.1.0266Gaëtan Lehmann
Problem: filetype: earthfile files are not recognized Solution: Detect 'Earthfile' as earthfile (Gaëtan Lehmann) closes: #14408 Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-04patch 9.1.0265: console dialog cannot save unnamed buffersv9.1.0265glepnir
Problem: console dialog cannot save unnamed buffers Solution: set bufname before save (glepnir). Define dialog_con_gui to test for GUI+Console dialog support, use it to skip the test when the GUI feature has been defined. Note: The dialog_changed() function will also try to call the browse_save_fname() function, when FEAT_BROWSE is defined (which is only defined in a GUI build of Vim). This will eventually lead to a call of do_browse(), which causes an error message if a GUI is not currently running (see the TODO: in do_browse()) and will then lead to a failure in Test_goto_buf_with_onfirm(). Therefore, we must disable the Test_goto_buf_with_onfirm(), when the dialog_con_gui feature is enabled (which basically means dialog feature for GUI and Console builds, in contrast to the dialog_con and dialog_gui feature). (Previously this wasn't a problem, because the test aborted in the YES case for the :confirm :b XgotoConf case and did therefore not run into the browse function call) closes: #14398 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-04runtime(doc): Fill in a few details regarding :enums (#14349)Aliaksei Budavei
- Mention the support of eval() for enumeration values. - Clarify the extent of immutability for enumeration values. - Specify the requirements for class methods to meet for class variable initialisation and their use in nested functions and lambda expressions. - Remove a duplicate sentence that describes how to access parent class methods in derivative classes (see another "copy" two paragraphs below). Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-04runtime: Remove fallback :CompilerSet definition from compiler pluginsDoug Kearns
The :CompilerSet command was added in version Vim 6.4 which was released twenty years ago. Other runtime files do not support versions of that vintage so it is reasonable to remove this fallback command definition now. closes: #14399 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-04runtime(java): Improve the matching of contextual keywordsAliaksei Budavei
- Recognise a _record_ contextual keyword. - Recognise _non-sealed_, _sealed_, and _permits_ contextual keywords. - Admit _$_ to keyword characters. - Group _abstract_, _final_, _default_, _(non-)sealed_ (apart from _(non-)sealed_, the incompossibility of these modifiers calls for attention). - Remove another _synchronized_ keyword redefinition. I have also replaced a function with an expression. Before patch 8.1.0515, it should have been declared :function! to work with repeatable script sourcing; there is less to worry about with an expression. References: https://openjdk.org/jeps/395 (Records) https://openjdk.org/jeps/409 (Sealed Classes) https://docs.oracle.com/javase/specs/jls/se21/html/jls-3.html#jls-3.8 closes: #14403 Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-03runtime(netrw): filetype not detected when editing remote filesChristian Brabandt
fixes: #14400 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-03runtime(doc): sort filetype.txt in the alphabetical order (#14395)K.Takata
Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-02patch 9.1.0253: filetype: typespec files are not recognizedv9.1.0253Hilmar Wiegand
Problem: filetype: typespec files are not recognized Solution: Detect '*.tsp' files as typespec (Hilmar Wiegand) Specs is at https://typespec.io/ closes: #14392 Signed-off-by: Hilmar Wiegand <me@hwgnd.de> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-01runtime(yaml): improve syntax highlighting for YAMLitchyny
- Recognize block scalar style to avoid unexpected highlighting by `yamlFlowString` (fix #11517) - Improve performance of `yamlFlowMappingKey` by allowing execution by the NFA engine (fix #10730) - It was intentionally disabled before patterns were optimized by `s:SimplifyToAssumeAllPrintable`. - Fix detection of flow style mapping indicators (fix #8234). - Enable highlighting of explicit mapping value indicators and node properties in flow style. - Add syntax highlighting tests closes: #14354 Signed-off-by: itchyny <itchyny@cybozu.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-01patch 9.1.0251: Filetype test failsv9.1.0251zeertzjq
Problem: Filetype test fails. Solution: Move detection by name before detection by extension. Improve TextChanged test and remove wrong test and fix a typo in a comment (zeertzjq). closes: #14373 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31runtime(sshconfig,sshdconfig): update syntax (#14351)Eisuke Kawashima
* fix case insensitivity of Host and Hostname keys * improve regexps * add keywords Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0250: filetype: ldscripts cannot be recognizedv9.1.0250Wu, Zhenyu
Problem: filetype: ldscripts cannot be recognized Solution: Detect '*/ldscripts/*' as ld (Wu, Zhenyu) closes: #14371 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0249: filetype: rock_manifest and config.ld files are not recognizedv9.1.0249Wu, Zhenyu
Problem: filetype: rock_manifest and config.ld files are not recognized Solution: Detect 'rock_manifest' and 'config.ld' as lua (Wu, Zhenyu) closes: #14370 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0248: filetype: yarn lock files are not recognizedv9.1.0248Wu, Zhenyu
Problem: filetype: yarn lock files are not recognized Solution: Detect 'yarn.lock' files as yaml (Wu, Zhenyu) closes: #14369 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0247: filetype: bundle config files are not recognizedv9.1.0247Wu, Zhenyu
Problem: filetype: bundle config files are not recognized Solution: Detect '*/.bundle/config' as yaml (Wu, Zhenyu) closes: #14368 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0246: filetype: fontconfig files are not recognizedv9.1.0246Wu, Zhenyu
Problem: filetype: fontconfig files are not recognized Solution: detect 'fonts.conf' as xml (Wu, Zhenyu) closes: #14367 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0245: filetype: zsh theme, history and zunit files are not recognizedv9.1.0245Wu, Zhenyu
Problem: filetype: zsh theme, history and zunit files are not recognized. Solution: Detect '.zsh_history', '*.zsh-theme' and '*.zunit' as zsh (Wu, Zhenyu) closes: #14366 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0244: filetype: bash history files are not recognizedv9.1.0244Wu, Zhenyu
Problem: filetype: bash history files are not recognized Solution: detect .bash-history and .bash_history files as bash (Wu, Zhenyu) closes: #14365 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0243: filetype: netrw history file is not recognizedv9.1.0243Wu, Zhenyu
Problem: filetype: netrw history file is not recognized Solution: Detect .netrwhist as vim files (Wu, Zhenyu) closes: #14364 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0242: filetype: octave history files are not recognizedv9.1.0242Wu, Zhenyu
Problem: filetype: octave history files are not recognized Solution: Detect octave/history files as octave (Wu, Zhenyu) closes: #14363 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0241: filetype: mysql history files are not recognizedv9.1.0241Wu, Zhenyu
Problem: filetype: mysql history files are not recognized Solution: Detect .mysql_history as mysql (Wu, Zhenyu) closes: #14362 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0240: filetype: some python tools config files are not recognizedv9.1.0240Wu, Zhenyu
Problem: filetype: some python tools config files are not recognized Solution: Detect config files for setuptools, pudb, coverage as dosini (Wu, Zhenyu) closes: #14361 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0239: filetype: gnuplot history files are not recognisedv9.1.0239Wu, Zhenyu
Problem: filetype: gnuplot history files are not recognised Solution: detect .gnuplot_history files as gnuplot (Wu, Zhenyu) closes: #14360 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0238: filetype: jupyterlab and sublime config are not recognizedv9.1.0238Wu, Zhenyu
Problem: filetype: jupyterlab and sublime config are not recognized Solution: Detect jupyterlab and sublime config files as json (Wu, Zhenyu) closes: #14359 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0237: filetype: mplstyle files are not recognizedv9.1.0237Wu, Zhenyu
Problem: filetype: mplstyle files are not recognized Solution: Detect '*.mplstyle' files as yaml (Wu, Zhenyu) closes: #14358 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0236: filetype: texlua files are not recognizedv9.1.0236Wu, Zhenyu
Problem: filetype: texlua files are not recognized Solution: Add '*.tlu' pattern for texlua files (Wu, Zhenyu) Reference: https://github.com/TeX-Live/texdoc/tree/master/script closes: #14357 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0235: filetype: supertux files are not recognizedv9.1.0235Wu, Zhenyu
Problem: filetype: supertux files are not recognized Solution: Supertux uses lisp to store hotkeys in config and game stage information, so add a pattern for supertux files. (Wu, Zhenyu) Reference: https://github.com/SuperTux/supertux/wiki/S-Expression closes: #14356 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0234: filetype: support for Intel HEX files is lackingv9.1.0234Wu, Zhenyu
Problem: filetype: support for Intel HEX files is lacking Solution: Add more file extensions that are typical for Intel HEX files (Wu, Zhenyu) Reference: https://en.wikipedia.org/wiki/Intel_HEX closes: #14355 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31patch 9.1.0233: Vim9: string() output of enum is problematicv9.1.0233Yegappan Lakshmanan
Problem: Vim9: string() output of enum is problematic Solution: Make string() output for an enum consistent with that of a regular object (Yegappan Lakshmanan). closes: #14343 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31runtime(compilers): ensure compiler! sets global options (#14336)Enno
Previously some options were only set locally by &l:makeprg/errorformat This suffices for :compiler (without a trailing bang) but falls short for :compiler! that sets &g:makeprg/errorformat as well Also apply kind suggestions by @dkearns and @lifepillar Signed-off-by: Konfekt <Konfekt@users.noreply.github.com> Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31runtime(vim): Distinguish Vim9 builtin object methods from namesake builtin ↵Aliaksei Budavei
functions (#14348) Currently, the overriding object method definitions are matched as vimFunctionError (:help builtin-object-methods, v9.1.0148). For example: ------------------------------------------------------------ vim9script class Test def string(): string return "Test" enddef endclass echo string(Test.new()) == Test.new().string() ------------------------------------------------------------ Instead, let's introduce a new syntax group vimMethodName and make these methods its members. In order to emphasise the link between the overriding methods and the overridden functions for highlighting, vimMethodName is linked by default to vimFuncName. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-31runtime(pamconf): add support for Debian specific @includesChristian Brabandt
fixes: #14335 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-29patch 9.1.0228: Two unrelated things are tested by a single testv9.1.0228zeertzjq
Problem: Two unrelated things are tested by a single test. Solution: Split it into two, restoring the old Test_brace_single_line(). Add missing cleanup to some tests. (zeertzjq) closes: #14323 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-29runtime(doc): Improve docs for empty(), len(), and string() on objectsmityu
closes: #14324 Signed-off-by: mityu <mityu.mail@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-28patch 9.1.0219: Vim9: No enum supportv9.1.0219Yegappan Lakshmanan
Problem: No enum support Solution: Implement enums for Vim9 script (Yegappan Lakshmanan) closes: #14224 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-03-28translation(ru): Add translation for README.txt and uganda.txt (#14312)Restorer
* translation(ru): The main file README.txt and uganda.txt * removed tags-ru Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>