From 1cc635783c19e0ad202ed0527ab28ecd2c097558 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 8 May 2020 12:08:33 +0200 Subject: [PATCH] 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. --- snippets/java-mode/method | 2 +- snippets/java-mode/param | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/java-mode/method b/snippets/java-mode/method index 7a6b9ed..0b93013 100644 --- a/snippets/java-mode/method +++ b/snippets/java-mode/method @@ -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 } \ No newline at end of file diff --git a/snippets/java-mode/param b/snippets/java-mode/param index 4a1f44d..81ef560 100644 --- a/snippets/java-mode/param +++ b/snippets/java-mode/param @@ -2,4 +2,4 @@ # name: param # key: param # -- -@param ${1:paramater} $0 \ No newline at end of file +@param ${1:parameter} $0 \ No newline at end of file