]> git.wincent.com - wikitext.git/blobdiff - ext/wikitext_ragel.rl
Handle optional "lang" attribute in PRE_START tags
[wikitext.git] / ext / wikitext_ragel.rl
index f0cc0eba41970440693e75beafd7fe9b3359a274..68f971cc7fdfc654658394a5aa8118dd122f2331 100644 (file)
             fbreak;
         };
 
+        '<pre lang="' alpha+ '">'
+        {
+            EMIT(PRE_START);
+            fbreak;
+        };
+
         '</pre>'i
         {
             EMIT(PRE_END);