branch: externals/javaimp
commit ecf07827618b630997bae0d85fa91ce875babbe6
Author: Filipp Gunbin <[email protected]>
Commit: Filipp Gunbin <[email protected]>
* javaimp-parse.el (javaimp-parse--decl-prefix): Allow symbols
---
javaimp-parse.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/javaimp-parse.el b/javaimp-parse.el
index b06890a7ca..8948e93294 100644
--- a/javaimp-parse.el
+++ b/javaimp-parse.el
@@ -301,8 +301,9 @@ point is also at that position) or nil."
'(?@ ?\( ;annotation type / args
?< ;generic type
?\[)) ;array
- ;; keyword / identifier first char
- (= (syntax-class (syntax-after pos)) 2))) ;word
+ ;; keyword / identifier first char: word or
+ ;; symbol
+ (memql (syntax-class (syntax-after pos)) '(2 3))))
(goto-char (setq res pos))))
res))