From 097440d964c540f2bb657fd5ba09c82844839271 Mon Sep 17 00:00:00 2001 From: Tobias Zawada Date: Mon, 31 Jul 2023 09:28:35 +0200 Subject: [PATCH] Fixes #39. Spaces and source-language name for language attribute --- adoc-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adoc-mode.el b/adoc-mode.el index 4d114bf..f5efd16 100644 --- a/adoc-mode.el +++ b/adoc-mode.el @@ -2033,7 +2033,7 @@ START-SRC and END-SRC delimit the actual source code." (outer-brackets-and-delimiter (&rest stuff) (format "^\\[%s\\]\n\\(?2:----+\\)\n" (apply #'concat stuff))) - (lang () ",\\(?1:[^],]+\\)") + (lang () ",[\t ]*\\(source-language[\t ]*=[\t ]*\\)?\\(?1:[^],]+\\)") (optional-other-args () "\\(?:,[^]]+\\)?")) (outer-brackets-and-delimiter (rx-or