Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: lib/src/prism/components/prism-php-extras.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/prism/components/prism-php.js ('k') | lib/src/prism/components/prism-php-extras.min.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/prism/components/prism-php-extras.js
diff --git a/lib/src/prism/components/prism-php-extras.js b/lib/src/prism/components/prism-php-extras.js
index 914172ea41f0eb882f5e9aee046963585948af05..d40161b0d85c775d5fe7a2c8d2930ac796c90f64 100644
--- a/lib/src/prism/components/prism-php-extras.js
+++ b/lib/src/prism/components/prism-php-extras.js
@@ -1,6 +1,6 @@
Prism.languages.insertBefore('php', 'variable', {
- 'this': /\$this/,
- 'global': /\$_?(GLOBALS|SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)/,
+ 'this': /\$this\b/,
+ 'global': /\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)/,
'scope': {
pattern: /\b[\w\\]+::/,
inside: {
« no previous file with comments | « lib/src/prism/components/prism-php.js ('k') | lib/src/prism/components/prism-php-extras.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698