Fix parsing of CSS at-rules Test case: @page { size: A4 landscape; margin: 2cm } The previous *atrule* regexp matched until the `;` but it should stop at the first `{`.
diff --git a/components/prism-css.js b/components/prism-css.js
index 4f92e2f..77f94d4 100644
--- a/components/prism-css.js
+++ b/components/prism-css.js
@@ -1,6 +1,6 @@
Prism.languages.css = {
'comment': /\/\*[\w\W]*?\*\//g,
- 'atrule': /@[\w-]+?(\s+.+)?(?=\s*{|\s*;)/gi,
+ 'atrule': /@[\w-]+?(\s+[^;{]+)?(?=\s*{|\s*;)/gi,
'url': /url\((["']?).*?\1\)/gi,
'selector': /[^\{\}\s][^\{\}]*(?=\s*\{)/g,
'property': /(\b|\B)[a-z-]+(?=\s*:)/ig,