summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Herrlin <jherrlin@gmail.com>2021-01-10 21:47:26 +0100
committerIan Martins <ianxm@jhu.edu>2021-01-16 15:43:34 -0500
commitd700dff7ac564b797632c8b9b6120a6c8e8fecda (patch)
treee26fa6a733338ff5787fff2454f771a681c364f0
parentedda21e9312be2af5566286bcd9042fbbec56725 (diff)
downloadorg-mode-d700dff7ac564b797632c8b9b6120a6c8e8fecda.tar.gz
ob-java: Include static imports in regex
* lisp/ob-java.el (org-babel-java--imports-re): Include static imports in Java import regex. TINYCHANGE
-rw-r--r--lisp/ob-java.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ob-java.el b/lisp/ob-java.el
index f70a501..c9698bd 100644
--- a/lisp/ob-java.el
+++ b/lisp/ob-java.el
@@ -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.")