Skip to content

Commit

Permalink
Eiffel: Fix string patterns order + fix /= operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 17, 2015
1 parent 5f133c8 commit 7d1b8d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/prism-eiffel.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Prism.languages.eiffel = {
'string': [
// Single-line string
/"(?:%\s+%|%"|.)*?"/,
// Aligned-verbatim-strings
/"([^[]*)\[[\s\S]+?\]\1"/,
// Non-aligned-verbatim-strings
/"([^{]*)\{[\s\S]+?\}\1"/
/"([^{]*)\{[\s\S]+?\}\1"/,
// Single-line string
/"(?:%\s+%|%"|.)*?"/
],
// (comments including quoted strings not supported)
'comment': /--.*/,
Expand All @@ -20,5 +20,5 @@ Prism.languages.eiffel = {
/(?:\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?[eE][+-]?)?\d(?:_*\d)*|\d(?:_*\d)*\.?/
],
'punctuation': /:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,
'operator': /\\\\|\|\.\.\||\.\.|\/[~\/]?|[><\/]=?|[-+*^=~]/
'operator': /\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/
};
2 changes: 1 addition & 1 deletion components/prism-eiffel.min.js

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

0 comments on commit 7d1b8d7

Please sign in to comment.