Bug 428045 - Bad styling in acorn/acorn_loose.js
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/application_javascript/syntax.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/application_javascript/syntax.js
index 37de15a..2751874 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/application_javascript/syntax.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/application_javascript/syntax.js
@@ -44,6 +44,9 @@
 				match: "\\b(?:" + keywords.join("|") + ")\\b", //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$
 				name: "keyword.control.js" //$NON-NLS-0$
 			}, {
+				match: "/(?![\\s])(?:\\\\.|[^/])+/(?![/*])(?:[gim]\\b)?", //$NON-NLS-0$
+				name: "string.regexp.js" //$NON-NLS-0$
+			}, {
 				begin: "(['\"])(?:\\\\.|[^\\\\\\1])*\\\\$", //$NON-NLS-0$
 				end: "^(?:$|(?:\\\\.|[^\\\\\\1])*(\\1|[^\\\\]$))", //$NON-NLS-0$
 				name: "string.quoted.multiline.js" //$NON-NLS-0$
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/text_x-ruby/syntax.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/text_x-ruby/syntax.js
index 90b7c9c..fbcd5df 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/text_x-ruby/syntax.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/text_x-ruby/syntax.js
@@ -65,6 +65,9 @@
 					}
 				]
 			}, {
+				match: "/(?![\\s])(?:\\\\.|[^/])+/(?:[ioxmuesn]\\b)?", //$NON-NLS-0$
+				name: "string.regexp.ruby" //$NON-NLS-0$
+			}, {
 				match: "\\b0[bB][01]+\\b",
 				name: "constant.numeric.binary.ruby"
 			}, {