Skip to content

Commit cd03587

Browse files
committed
Merge branch 'working' of https://github.com/Conaclos/prism into Conaclos-working
2 parents 4e67562 + 39f48c9 commit cd03587

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/prism-eiffel.js

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ Prism.languages.eiffel = {
1313
'char': /'(?:%'|.)+?'/,
1414
'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,
1515
'boolean': /\b(?:True|False)\b/i,
16+
// Convention: class-names are always all upper-case characters
17+
'class-name': {
18+
'pattern': /\b[A-Z][\dA-Z_]*\b/g,
19+
'alias': 'builtin'
20+
},
1621
'number': [
1722
// hexa | octal | bin
1823
/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,

0 commit comments

Comments
 (0)