sh2js.pl adds wrong key to js
Status: Beta
Brought to you by:
gnombat
trying to make a new syntax highlighter using the gnu .lang stuff. after using the sh2js.pl file to compile to js, the js file contains something like
sh_languages['sh_mylang'] = [....]
but it should be
sh_langueages['mylang'] = [...]
as shjs_main.js removes the "sh_" prefix when looking for language keys
i tried adding $filename =~ s/'sh_'/''/; to JavaScript.pm but it didn't seem to work :/
The .lang file should be named without a sh_ prefix; i.e., use foo.lang, not sh_foo.lang. Does that work?