ENH: Make method scope choosable.

In Java, the method snippet now lets one choose the scope:
- public
- private
- protected
- ""

Also fixed a typo.
* snippets/java-mode/method: Method scope is choosable now.
This commit is contained in:
Daniel 2020-05-08 12:08:33 +02:00
parent ab3c20483a
commit 1cc635783c
No known key found for this signature in database
GPG Key ID: 16DDCF2524A328DC
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
# name: method
# key: m
# --
${1:public} ${2:void} ${3:name}(${4:args}) {
${1:$$(yas-choose-value '("public" "private" "protected" ""))} ${2:void} ${3:name}(${4:args}) {
$0
}

View File

@ -2,4 +2,4 @@
# name: param
# key: param
# --
@param ${1:paramater} $0
@param ${1:parameter} $0