Separate multiline code block language from remaining parameters
[sixth.git] / src / main / java / eu / svjatoslav / sixth / core / document / Document.java
index e4c45bd..c61d613 100644 (file)
@@ -62,7 +62,7 @@ public class Document {
 
         // DocumentProperty:
         // "#+OPTIONS: H:20 num:20"
-        tokenizer.addTerminator(PRESERVE, "#\\+[^\\s]+:.*\\r?\\n", TG_DOCUMENT_PROPERTY);
+        tokenizer.addTerminator(PRESERVE, "#\\+([^\\s]+):(.*)\\r?\\n", TG_DOCUMENT_PROPERTY);
 
         // Drawer property:
         //  " :ID:       533734b9-0456-4448-9830-a43646345615"