Skip to content

Commit

Permalink
MATLAB: Simplify string pattern to remove lookbehind
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Aug 28, 2015
1 parent 8c0a265 commit a3cbecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions components/prism-matlab.js
Original file line number Diff line number Diff line change
@@ -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]*?\}%/,
/%.+/
Expand Down
2 changes: 1 addition & 1 deletion components/prism-matlab.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a3cbecc

Please sign in to comment.