diff --git a/RegExpSupport/test/org/intellij/lang/regexp/RegExpParseTest.java b/RegExpSupport/test/org/intellij/lang/regexp/RegExpParseTest.java
index 7aa073894522..d9a06ed1fb33 100644
--- a/RegExpSupport/test/org/intellij/lang/regexp/RegExpParseTest.java
+++ b/RegExpSupport/test/org/intellij/lang/regexp/RegExpParseTest.java
@@ -103,6 +103,10 @@ public class RegExpParseTest extends BaseParseTestCase {
return super.getTestDataPath() + "/gen/";
}
+ public void testOptions() throws Exception {
+ doTest("options/");
+ }
+
public void testSimple() throws Exception {
doTest("simple/");
}
diff --git a/RegExpSupport/testData/RETest.xml b/RegExpSupport/testData/RETest.xml
index 3e81b2ec2e89..12ec11dbd6e3 100644
--- a/RegExpSupport/testData/RETest.xml
+++ b/RegExpSupport/testData/RETest.xml
@@ -919,6 +919,21 @@
+
+
+ Zm)abc]]>
+ OK
+
+
+ (?idmsuxU)nice
+ OK
+
+
+ (?idm-suxU)one(?suxU-idm)two
+ OK
+
+
+
abc)
ERR