Skip to content

Commit

Permalink
Fixes #39. Spaces and source-language name for language attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Zawada authored and Tobias Zawada committed Jul 31, 2023
1 parent b0702bd commit 097440d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adoc-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 097440d

Please sign in to comment.