Generally I find PrismJS works well for Eiffel but I am having trouble with one particular class called EL_ZSTRING. See this web page: http://www.eiffel-loop.com/library/base/text/string/zstring/el_zstring.html
The syntax highlighting starts to fail at the line:
item alias "[]", at alias "@" (i: INTEGER): CHARACTER_32 assign put
This is a rather important class in my libraries so I would appreciate to have the syntax highlighting working. I suspect it might have something to do with the alias string
"[]"
This is because this construct also indicates an unescaped string similar to the way a triple quote works in Python. For example
xml: STRING = "[
<?xml version="1.0" encoding="utf-8">
<empty/>
]"
Unfortunately there is no version information in the Prism code.
Hi! Thanks for reporting. The issue should be fixed now.
Many thanks for the fix.
BTW, I would like to offer a suggestion. The most popular Eiffel IDE (EiffelStudio) highlights Eiffel class names with the color blue. Screenshot If PrismJS could do the same it would be fantastic. This should be relatively easy to achieve as any identifier consisting of all upper case letters can be assumed to be a class name. This is a universal naming convention in the Eiffel community.
Sounds good. Could you open a new issue for this?
Done! "Class name highlighting for Eiffel #1383"
Most helpful comment
Many thanks for the fix.
BTW, I would like to offer a suggestion. The most popular Eiffel IDE (EiffelStudio) highlights Eiffel class names with the color blue. Screenshot If PrismJS could do the same it would be fantastic. This should be relatively easy to achieve as any identifier consisting of all upper case letters can be assumed to be a class name. This is a universal naming convention in the Eiffel community.