view .github/labeler.yml @ 35039:fbdb6aeca2e2

runtime(java): Improve the recognition of the "style" method declarations Commit: https://github.com/vim/vim/commit/a4c085a3e607bd01d34e1db600b6460fc35fb0a3 Author: Aliaksei Budavei <0x000c70@gmail.com> Date: Wed Apr 24 21:04:25 2024 +0200 runtime(java): Improve the recognition of the "style" method declarations - 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>
author Christian Brabandt <cb@256bit.org>
date Wed, 24 Apr 2024 21:15:02 +0200
parents 93a5438726a2
children
line wrap: on
line source

# list of labels and minimatch globs to match to apply the label.

CI:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - '.cirrus.yml'
        - '.github/dependabot.yml'
        - '.github/labeler.yml'
        - '.github/workflows/*'
        - '.appveyor.yml'
        - '.codecov.yml'

documentation:
  - all:
    - changed-files:
      - any-glob-to-all-files:
        - '*/doc/*'

translation:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/po/*.po'

if_lua:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/if_lua.c'
        - 'src/proto/if_lua.pro'
        - 'runtime/doc/if_lua.txt'

if_mzscheme:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/if_mzsch.c'
        - 'src/if_mzsch.h'
        - 'src/proto/if_mzsch.pro'
        - 'runtime/doc/if_mzsch.txt'

if_perl:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/if_perl.xs'
        - 'src/if_perlsfio.c'
        - 'src/proto/if_perl.pro'
        - 'src/proto/if_perlsfio.pro'
        - 'runtime/doc/if_perl.txt'

if_python:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/if_py_both.h'
        - 'runtime/doc/if_pyth.txt'
        - 'src/if_python.c'
        - 'src/if_python3.c'
        - 'src/proto/if_python.pro'
        - 'src/proto/if_python3.pro'

if_ruby:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/if_ruby.c'
        - 'src/proto/if_ruby.pro'
        - 'runtime/doc/if_ruby.txt'

if_tcl:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/if_tcl.c'
        - 'src/proto/if_tcl.pro'
        - 'runtime/doc/if_tcl.txt'

installer:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'nsis/**'
        - 'src/dosinst.*'
        - 'src/uninstall.c'

platform-mac:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/INSTALLmac.txt'
        - 'src/os_mac*'
        - 'src/proto/os_mac*'

platform-windows:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'nsis/**'
        - 'src/*.bat'
        - 'src/*.bmp'
        - 'src/*.ico'
        - 'src/GvimExt/*'
        - 'src/INSTALLpc.txt'
        - 'src/Make_cyg*.mak'
        - 'src/Make_ming.mak'
        - 'src/Make_mvc.mak'
        - 'src/dosinst.*'
        - 'src/gui_dwrite.*'
        - 'src/gui_w32*'
        - 'src/if_ole.*'
        - 'src/iid_ole.c'
        - 'src/os_mswin*'
        - 'src/os_w32*'
        - 'src/os_win32.*'
        - 'src/proto/gui_w32.pro'
        - 'src/proto/os_mswin.pro'
        - 'src/proto/os_win32.pro'
        - 'src/proto/winclip.pro'
        - 'src/uninstall.c'
        - 'src/vim.manifest'
        - 'src/vim.rc'
        - 'src/vimrun.c'
        - 'src/winclip.c'
        - 'src/xpm/**'
        - 'src/xpm_w32.*'

runtime:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'runtime/ftplugin'
        - 'runtime/syntax'
        - 'runtime/indent'
        - 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim'

termdebug:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim'

plugin-netrw:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'runtime/plugin/netrwPlugin.vim'
        - 'runtime/autoload/netrw*'

xxd:
  - all:
    - changed-files:
      - any-glob-to-any-file:
        - 'src/xxd/*'