summaryrefslogtreecommitdiffstats
path: root/runtime
AgeCommit message (Collapse)Author
2024-05-08patch 9.1.0396: filetype: jj files are not recognizedv9.1.0396Gregory Anders
Problem: jj files are not recognized Solution: recognize '*.jjdescription' files as jj filetype (Gregory Anders) See: https://github.com/martinvonz/jj closes: #14733 Signed-off-by: Gregory Anders <greg@gpanders.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-08runtime(netrw): Remove and cleanup Win9x legacy from netrwNir Lichtman
closes: #14732 Signed-off-by: Nir Lichtman <nir@lichtman.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-07runtime(doc): add MsgArea to 'highlight' option descriptionChristian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-07patch 9.1.0394: Cannot get a list of positions describing a regionv9.1.0394Shougo Matsushita
Problem: Cannot get a list of positions describing a region (Justin M. Keyes, after v9.1.0120) Solution: Add the getregionpos() function (Shougo Matsushita) fixes: #14609 closes: #14617 Co-authored-by: Justin M. Keyes <justinkz@gmail.com> Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-07runtime(cpp): Fix digit separator in syntax script for octals and floatsWu Yongwei
Also fix the incorrect rendering of floats that start with ".". closes: #14724 Signed-off-by: Wu Yongwei <wuyongwei@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-06runtime(sh,zsh): clear $MANPAGER in ftplugin before shelling outD. Ben Knoble
Say you use Vim and set MANPAGER='vim -M +MANPAGER --not-a-term -'; then :{Zs,S}hKeywordPrg (or K) will crap out and spew terminal garbage into less when bash's "help" fails. This was introduced by 2f25e40b1 (runtime: configure keywordpg for some file types (#5566), 2023-08-23) and may be present in other files touched by that commit. Make the "man" invocation sensible by unsetting MANPAGER in the environment. Note that changing MANPAGER for `:terminal` is not needed; Vim within Vim is perfectly fine. closes: #14679 Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-05runtime(doc): Fix typos in help documentsh-east
closes: #14720 Co-authored-by: Christian Clason <c.clason@uni-graz.at> Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-04patch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOMEv9.1.0393Christian Brabandt
Problem: 'viewdir' not respecting $XDG_CONFIG_HOME (Danilo Rezende, after v9.1.327) Solution: adjust 'viewdir' option when enabling XDG config mode fixes: #14680 closes: #14708 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-04runtime(doc): correct getscriptinfo() example (#14718)zeertzjq
When "sid" is specified, it returns a List with a single item. Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-03patch 9.1.0391: Vim9: could improve testingv9.1.0391Yegappan Lakshmanan
Problem: Vim9: could improve testing (Ernie Rael) Solution: Support defcompile for test_override() to improve testing (Yegappan Lakshmanan) fixes: #14553 closes: #14712 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(sr): update Serbian menuOleg Zadorozhnyi
closes: #14669 closes: #10722 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(sk): update Slovak menuOleg Zadorozhnyi
closes: #14671 closes: #10721 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(sl): update Slovenian menuOleg Zadorozhnyi
closes: #14673 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(pt): update Portuguese menuOleg Zadorozhnyi
closes: #10718 closes: #10717 closes: #14674 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(nl): update Dutch menuOleg Zadorozhnyi
closes: #14682 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(ko): update Korean menuOleg Zadorozhnyi
closes: #14683 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(is): update Icelandic menuOleg Zadorozhnyi
closes: #14685 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(CZ): update Czech menuOleg Zadorozhnyi
closes: #14704 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(af): update Afrikaans menuOleg Zadorozhnyi
closes: #14706 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(de): update German menuOleg Zadorozhnyi
closes: #14702 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02patch 9.1.0390: filetype: inko files are not recognizedv9.1.0390Yorick Peterse
Problem: filetype: inko files are not recognized Solution: Detect '*.inko' as ink filetype (Yorick Peterse) See: - https://github.com/inko-lang/inko.vim - https://inko-lang.org/ closes: #14699 Signed-off-by: Yorick Peterse <git@yorickpeterse.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02patch 9.1.0389: filetype: templ files are not recognizedv9.1.0389tris203
Problem: filetype: templ files are not recognized Solution: Detect '*.templ' files as filetype templ (Tristan Knight) See: - https://github.com/a-h/templ - https://templ.guide/ closes: #14697 Signed-off-by: tris203 <admin@snappeh.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-02translation(ca): update Catalan menuOleg Zadorozhnyi
closes: #14705 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-01patch 9.1.0386: filetype: stylus files not recognizedv9.1.0386Philip H
Problem: filetype: stylus files not recognized Solution: Detect '*.styl' and '*.stylus' as stylus filetype, include indent, filetype and syntax plugin (Philip H) closes: #14656 Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-01translation(es): update spanish menu localizationOleg Zadorozhnyi
closes: #14690 Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-01runtime(doc): regenerate helptags (#14695)Philip H
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-01runtime(doc): Add tags about lazyloading of menu (#14688)K.Takata
Close #14672 Also add the `g:` prefix. Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-30patch 9.1.0383: filetype: .out files recognized as tex filesv9.1.0383shane.xb.qian
Problem: filetype: .out files recognized as tex files Solution: Do not set an explicit filetype until it is clear what this should be (shane.xb.qian) closes: #14670 Signed-off-by: shane.xb.qian <shane.qian@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-30patch 9.1.0382: filetype: Kbuild files are not recognizedv9.1.0382Bruno BELANYI
Problem: Kbuild files are not recognized. Solution: Detect Kbuild files as make files. (Bruno Belanyi) closes: #14676 Signed-off-by: Bruno Belanyi <bruno@belanyi.fr> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-29patch 9.1.0381: cbuffer and similar commands don't accept a rangev9.1.0381Christian Brabandt
Problem: cbuffer and similar quickfix and locationlist commands don't accept a range, even so it is documented they should (ilan-schemoul, after 8.1.1241) Solution: Define ex commands with ADDR_LINES instead of ADDR_OTHER fixes: #14638 closes: #14657 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-29runtime(java): Improve the recognition of the "indent" method declarations ↵Aliaksei Budavei
(#14659) There is a flaw in the current implementation that has been exacerbated around v5.2. It lies in the recognition of all three indentation styles simultaneously: a tab, two space, and eight space character(s). With it, it is not uncommon to misidentify various constructs as method declarations when they belong to two-space indented members and other blocks of a type and are offset at eight space characters or a tab from the start of the line. For example, ------------------------------------------------------------ class Test { static String hello() { return "hello"; } public static void main(String[] args) { try { if (args.length > 0) { // FIXME: eight spaces. System.out.println(args[0]); } else { // FIXME: a tab. System.out.println(hello()); } } catch (Exception e) { throw new Error(e); } } } ------------------------------------------------------------ ------------------------------------------------------------ :let g:java_highlight_functions = 'indent' :doautocmd Syntax ------------------------------------------------------------ A better approach is to pick an only indentation style out of all supported styles (so either two spaces _or_ eight spaces _or_ a tab). Note that tabs and spaces can still be mixed, only the leading tab or the leading run of spaces matters for the recognition. And there is no reason to not complement the set of valid styles with any number of spaces from 1 to 8, inclusively. Please proceed with the necessary change as follows: - rename from "indent" to "indent2" for a 2-space run; - rename from "indent" to "indent8" for an 8-space run; - continue to have "indent" for a tab run; - define an "indent" variable with a suffix number denoting the preferred amount of indentation for any other run of spaces [1-8]. As before, this alternative style of recognition of method declarations still does not prescribe naming conventions and still cannot recognise method declarations in nested types that are conventionally indented. The proposed changes also follow suit of "style" in stopping the claiming of constructor and enum constant declarations. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-29runtime(doc): Fix a typo in usr_30.txtUM-Li
closes: #14662 Signed-off-by: UM-Li <um-li@tuta.io> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-29runtime(jq): remove undefined var s:save_cpoptions and add include settingGodFather
closes: #14661 closes: #14663 Co-authored-by: itchyny <itchyny@cybozu.co.jp> Signed-off-by: GodFather <vito.blog@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-28runtime(asm): missing setlocal in indent plugin (#14658)Marc Sven Schulte
Signed-off-by: Marc Sven Schulte <167623652+msschulte@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-28runtime(ssa): improve syntax file performance (#14654)ObserverOfTime
fixes: #14653 Signed-off-by: ObserverOfTime <chronobserver@disroot.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-27runtime(doc): CI: remove trailing white space in documentationChristian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-27runtime(debversions): Add oracular (24.10) as Ubuntu release nameSimon Quigley
closes: #14645 Signed-off-by: Simon Quigley <simon@tsimonq2.net> Signed-off-by: James McCoy <jamessan@jamessan.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-27patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignoredv9.1.0376Yegappan Lakshmanan
Problem: Vim9: Trailing commands after class/enum keywords ignored Solution: Remove EX_TRLBAR keyword from command definition (Yegappan Lakshmanan) closes: #14649 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-27runtime(doc): update helptags for jq syntax (#14646)Philip H
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-26runtime(jq): include syntax, ftplugin and compiler pluginVito
closes: #14619 Signed-off-by: Vito <vito.blog@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-26runtime(doc): fix typo synconcealend -> synconcealed (#14644)Philip H
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-26runtime(comment): include a simple comment toggling pluginMaxim Kim
fixes #14626 closes: #14634 Signed-off-by: Maxim Kim <habamax@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-26runtime(doc): fix typoChristian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-26runtime(doc): clarify syntax vs matching mechanismChristian Brabandt
fixes: #14643 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-25runtime(asm): fix undefined variable in indent pluginChristian Brabandt
It's an indent script, so we need to set the b:undo_indent variable instead of the b:undo_ftplugin var. fixes: #14602 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-25runtime(doc): clarify the effect of setting the shell to powershellChristian Brabandt
fixes: #14636 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-24runtime(java): Improve the recognition of the "style" method declarationsAliaksei Budavei
- Request the new regexp engine (v7.3.970) for [:upper:] and [:lower:]. - Recognise declarations of in-line annotated methods. - Recognise declarations of _strictfp_ methods. - Establish partial order for method modifiers as shown in the MethodModifier production; namely, _public_ and friends should be written the leftmost, possibly followed by _abstract_ or _default_, or possibly followed by other modifiers. - Stop looking for parameterisable primitive types (void<?>, int<Object>, etc., are malformed). - Stop looking for arrays of _void_. - Acknowledge the prevailing convention for method names to begin with a small letter and for class/interface names to begin with a capital letter; and, therefore, desist from claiming declarations of enum constants and constructors with javaFuncDef. Rationale: + Constructor is distinct from method: * its (overloaded) name is not arbitrary; * its return type is implicit; * its _throws_ clause depends on indirect vagaries of instance (variable) initialisers; * its invocation makes other constructors of its type hierarchy invoked one by one, concluding with the primordial constructor; * its explicit invocation, via _this_ or _super_, can only appear as the first statement in a constructor (not anymore, see JEP 447); else, its _super_ call cannot appear in constructors of _record_ or _enum_; and neither invocation is allowed for the primordial constructor; * it is not a member of its class, like initialisers, and is never inherited; * it is never _abstract_ or _native_. + Constructor declarations tend to be few in number and merit visual recognition from method declarations. + Enum constants define a fixed set of type instances and more resemble class variable initialisers. Note that the code duplicated for @javaFuncParams is written keeping in mind for g:java_highlight_functions a pending 3rd variant, which would require none of the :syn-cluster added groups. closes: #14620 Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-22patch 9.1.0366: filetype: ondir files are not recognizedv9.1.0366Jon Parise
Problem: filetype: ondir files are not recognized Solution: Detect '.ondirrc' as ondir filetype (Jon Parise) closes: #14604 Signed-off-by: Jon Parise <jon@indelible.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-22runtime(doc): update documentationRestorerZ
closes: #14616 Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-21runtime(astro): Add filetype, syntax and indent pluginPhilip H
related: #14558 closes: #14561 ported from: https://github.com/wuelnerdotexe/vim-astro Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>