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

Unified Diff: lib/src/prism/components/prism-matlab.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-markup.min.js ('k') | lib/src/prism/components/prism-matlab.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-matlab.js
diff --git a/lib/src/prism/components/prism-matlab.js b/lib/src/prism/components/prism-matlab.js
index b75b10994f053a437063f80784feaac56a7e090c..e210edb83ca2645db1ab9b85b07008b56fb00661 100644
--- a/lib/src/prism/components/prism-matlab.js
+++ b/lib/src/prism/components/prism-matlab.js
@@ -1,9 +1,6 @@
Prism.languages.matlab = {
// We put string before comment, because of printf() patterns that contain "%"
- 'string': {
- pattern: /(^|\W)'(?:''|[^'\n])*'/,
- lookbehind: true
- },
+ 'string': /\B'(?:''|[^'\n])*'/,
'comment': [
/%\{[\s\S]*?\}%/,
/%.+/
« no previous file with comments | « lib/src/prism/components/prism-markup.min.js ('k') | lib/src/prism/components/prism-matlab.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698