branch: externals/javaimp commit 8f82ff3762393733851635b3e244d30ac90a6645 Author: Filipp Gunbin <fgun...@fastmail.fm> Commit: Filipp Gunbin <fgun...@fastmail.fm>
* javaimp-parse.el (javaimp--parse-scope-class): Add "permits" to support sealed classes --- javaimp-parse.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/javaimp-parse.el b/javaimp-parse.el index ee0e573..d69cf5f 100644 --- a/javaimp-parse.el +++ b/javaimp-parse.el @@ -249,6 +249,8 @@ those may later become 'local-class' (see `javaimp--parse-scopes')." (or (javaimp--parse-decl-suffix "\\<extends\\>" state keyword-end) (javaimp--parse-decl-suffix "\\<implements\\>" + state keyword-end) + (javaimp--parse-decl-suffix "\\<permits\\>" state keyword-end)))) arglist) (unless (eq decl-suffix t)