Skip to content

Commit

Permalink
Add builtin alias for Eiffel class-name highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
carlfriess authored and Conaclos committed Apr 15, 2016
1 parent 41a43ca commit 39f48c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/prism-eiffel.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ Prism.languages.eiffel = {
'keyword': /\b(?:across|agent|alias|all|and|attached|as|assign|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,
'boolean': /\b(?:True|False)\b/i,
// Convention: class-names are always all upper-case characters
'class-name': /\b[A-Z][\dA-Z_]*\b/g,
'class-name': {
'pattern': /\b[A-Z][\dA-Z_]*\b/g,
'alias': 'builtin'
},
'number': [
// hexa | octal | bin
/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,
Expand Down

0 comments on commit 39f48c9

Please sign in to comment.