diff --git a/Text/HPaco/Readers/Paco/Statements.hs b/Text/HPaco/Readers/Paco/Statements.hs
--- a/Text/HPaco/Readers/Paco/Statements.hs
+++ b/Text/HPaco/Readers/Paco/Statements.hs
@@ -37,8 +37,8 @@
             <|> try defStatement
             <|> try callStatement
             <|> try literalBlock
-            <|> try commentStatement
             <|> try includeStatement
+            <|> try commentStatement
             <|> try interpolateStatement
             <|> try newlineStatement
             <|> try escapeSequenceStatement
@@ -94,15 +94,14 @@
 
 rawTextStatement :: Parser Statement
 rawTextStatement = do
-    chrs <- (:) <$> anyChar <*> manyTill anyChar delimiters
+    chrs <- many1 validChars
     return $ PrintStatement $ StringLiteral chrs
     where
-        delimiters = do
-            (leftInterpolation, _) <- pfInterpolationMarkers . psFlavor <$> getState
-            (leftComment, _) <- pfCommentMarkers . psFlavor <$> getState
-            (leftTag, _) <- pfTagMarkers . psFlavor <$> getState
-            lookAhead . some . mapM (try . string) $ [ leftTag, leftComment, leftInterpolation, "\n" ]
-            return ()
+        validChars = do
+            (c1:_, _) <- pfInterpolationMarkers . psFlavor <$> getState
+            (c2:_, _) <- pfCommentMarkers . psFlavor <$> getState
+            (c3:_, _) <- pfTagMarkers . psFlavor <$> getState
+            noneOf [ c1, c2, c3, '\n', '\\' ]
 
 newlineStatement :: Parser Statement
 newlineStatement = do
diff --git a/hpaco-lib.cabal b/hpaco-lib.cabal
--- a/hpaco-lib.cabal
+++ b/hpaco-lib.cabal
@@ -1,5 +1,5 @@
 name:                hpaco-lib
-version:             0.28.0.2
+version:             0.28.0.3
 synopsis:            Modular template compiler library
 description:         Template compiler library, compiles template code into
                      PHP or Javascript, or interprets it directly.
