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

Unified Diff: lib/src/prism/components/prism-smalltalk.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-scss.min.js ('k') | lib/src/prism/components/prism-smalltalk.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-smalltalk.js
diff --git a/lib/src/prism/components/prism-smalltalk.js b/lib/src/prism/components/prism-smalltalk.js
index 0ffc59d20fd3da030f6390890a0f861eda79fdfb..029ad93f31d56211878ed8b2994bfa6fc5e1c4c6 100644
--- a/lib/src/prism/components/prism-smalltalk.js
+++ b/lib/src/prism/components/prism-smalltalk.js
@@ -3,7 +3,7 @@ Prism.languages.smalltalk = {
'string': /'(?:''|[^'])+'/,
'symbol': /#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,
'block-arguments': {
- pattern: /(\[\s*)(?=:)[^\[|]+?\|/,
+ pattern: /(\[\s*):[^\[|]*?\|/,
lookbehind: true,
inside: {
'variable': /:[\da-z]+/i,
@@ -26,6 +26,6 @@ Prism.languages.smalltalk = {
/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,
/(?:\B-|\b)\d+(?:\.\d+)?(?:e-?\d+)?/
],
- 'operator': /[:=~<>]=|~~|\/\/|\\\\|>>|[!^=<>+\-*\/&|,@]/,
+ 'operator': /[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,
'punctuation': /[.;:?\[\](){}]/
};
« no previous file with comments | « lib/src/prism/components/prism-scss.min.js ('k') | lib/src/prism/components/prism-smalltalk.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698