Sfoglia il codice sorgente

ob-java: Include static imports in regex

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

TINYCHANGE
John Herrlin 4 anni fa
parent
commit
d700dff7ac
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      lisp/ob-java.el

+ 1 - 0
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.")