ob-java: Include static imports in regex

* lisp/ob-java.el (org-babel-java--imports-re): Include static imports
in Java import regex.

TINYCHANGE
This commit is contained in:
John Herrlin 2021-01-10 21:47:26 +01:00 committed by Ian Martins
parent edda21e931
commit d700dff7ac
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ like javac -verbose."
(0+ space) ?\; line-end)
"Regexp for the package statement.")
(defconst org-babel-java--imports-re (rx line-start (0+ space) "import"
(opt (1+ space) "static")
(1+ space) (group (1+ (in alnum ?_ ?.))) ; capture the fully qualified class name
(0+ space) ?\; line-end)
"Regexp for import statements.")