#920 Broken syntax highlighting in Erlang source files

open
nobody
Interface (176)
5
2012-12-09
2012-12-09
kejv2
No

I have found these situations when geany's syntax highlighter gets confused:

fun erlang:'+'/2
- generally every quoted function name breaks highlighting till the end of file, although quoted module name does not

digraph:edge ( G, E ), digraph: edges( G )
- space after function name causes the name being not highlighted, space before name breaks highlighting till the end of file
- on the other hand this works: digraph :edges( G ), as does this!: digraph : edges( G )

"{}|<>\"\\"
- geany apparently thoughts that the last double quote is escaped so it doesn't consider it as a string terminator, consequently thinking the rest of the file is string
- this could be general problem but I have tried it in Perl and it works there as expected

Version:
geany 0.21 (sestaveno Mar 19 2012 s GTK 2.24.10, GLib 2.31.20)

Discussion

  • kejv2
    kejv2
    2012-12-09

    I have forgotten to mention my OS which is Ubuntu 12.04.