branch: externals/javaimp
commit f20e36e8bb067ba7e3579ebf56e002674652dc4b
Author: Filipp Gunbin <fgun...@fastmail.fm>
Commit: Filipp Gunbin <fgun...@fastmail.fm>

    * javaimp-parse.el (javaimp--directive-regexp): Move above defconsts
---
 javaimp-parse.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/javaimp-parse.el b/javaimp-parse.el
index 986e690..80f9aab 100644
--- a/javaimp-parse.el
+++ b/javaimp-parse.el
@@ -31,11 +31,6 @@
 (defconst javaimp--parse-stmt-keyword-maxlen
   (seq-max (mapcar #'length javaimp--parse-stmt-keywords)))
 
-(defconst javaimp--parse-package-regexp
-  (javaimp--directive-regexp "package"))
-(defconst javaimp--parse-import-regexp
-  (javaimp--directive-regexp "import\\(?:[[:space:]]+static\\)?"))
-
 (defun javaimp--directive-regexp (directive)
   "Return regexp suitable for matching package-like DIRECTIVE, a
 regexp.  First group is directive, second group is identifier."
@@ -44,6 +39,11 @@ regexp.  First group is directive, second group is 
identifier."
       (group (+ (any alnum ?_)) (* ?. (+ (any alnum ?_ ?*))))
       (* space) ?\;))
 
+(defconst javaimp--parse-package-regexp
+  (javaimp--directive-regexp "package"))
+(defconst javaimp--parse-import-regexp
+  (javaimp--directive-regexp "import\\(?:[[:space:]]+static\\)?"))
+
 (defvar-local javaimp--parse-dirty-pos nil
   "Marker which points to a buffer position after which all parsed
 information should be considered as stale.  Usually set by

Reply via email to