Uploaded haml syntax highlighting for KDE file

32 views
Skip to first unread message

cies

unread,
Nov 25, 2008, 8:37:37 AM11/25/08
to Haml
the haml syntax highlighting file for KDE was lost, the link:
http://www.wrong.button.com/code/haml.xml
was dead.

i could reach the author so i got off^H^H^H on my ass and made
something similar. uploaded it to this group:
http://haml.googlegroups.com/web/haml_highlighting_for_kde.tar.gz


please help me test/extend it (just bump the version number by a minor
if you do), thanks!
it works quite well so far. (oh, multiline stuff, using a pipe sign,
has to be implemented, not in the TODO yet)


here some stuff, like TODOs, from the file (i dont like to type it
twice):

<language name="haml with Ruby" version="1.0" kateversion="2.3"
section="Markup"
extensions="*.haml" mimetype="text/x-haml"
author="Cies Breijs (cies_at_kde_nl)" license="LGPL">

<!-- learned and copied a lot from rhtml.xml -->
<!-- TODO: commenting doesn't work, test all of the haml spec with
this highlighting scheme, mark more error (currently only unpaired
spaces on indentation), give ruby code a little background, highlight
xml entities in plain text -->
<!-- ripped out some functionality from rhtml, like GDL, maybe put
this back in some day... -->
<!-- rhtml is rails specific, i ripped the rails helper keywords out
as i'm a _merb_ guy... -->

cheers,
cies breijs.

FiXato

unread,
Nov 25, 2008, 4:48:49 PM11/25/08
to ha...@googlegroups.com
YAY! Many thanks for this :)
Should make things easier to spot using Kate ;)

-Filip

2008/11/25 cies <cies....@gmail.com>:

cies

unread,
Nov 25, 2008, 10:45:47 PM11/25/08
to Haml
i updated it fixed MANY buggers..

http://haml.googlegroups.com/web/haml_highlighting_for_kde-1.1.tar.gz

it comes with my highlighting_test.haml file. (a big test case)
i also want to incorporate many testcases form the haml source into
this file.
and i have a plan to make a highlighting_errors_test.haml that
contains stuff that errors out (and could therefor be red-lined by the
text editor)..


currently is does nearly everything right except for the multiline
indentation delimited comments.

i'll look at the docu:
http://kate-editor.org/downloads/syntax_highlighting
and see if i manage, otherwise i'll call in the help of the kate devs.

i do want this (and a to be made sass highlighting scheme) to become
part of kde.

thanks guys,
cies breijs.




On Nov 26, 4:48 am, FiXato <fix...@gmail.com> wrote:
> YAY! Many thanks for this :)
> Should make things easier to spot using Kate ;)
>
> -Filip
>
> 2008/11/25 cies <cies.bre...@gmail.com>:

cies

unread,
Nov 25, 2008, 10:47:54 PM11/25/08
to Haml
ooops, the link to the kate highlighting docu should be:
http://kate-editor.org/article/writing_a_kate_highlighting_xml_file

sorry..
_c.

koulikoff

unread,
Nov 26, 2008, 4:46:04 AM11/26/08
to Haml
Great to hear about it. I've installed and I've found some issues.

1. The following fragment 'if' is not recognized and 'else' is related
to 'form' and 'else' is not closed by the next 'fieldset' tag:
- form_for(@person) do |f|
%fieldset
%ol
%li
%label.required Фамилия
= f.text_field :last_name

- if @person.company
%li
%label Имеет право подписи
= f.check_box :empowered
- else
%li
%label.required ИНН
= f.text_field :inn
%fieldset

2. In the following line the part that goes after the slash is greed
while it should not:
%label City/Town

And again, thanks for your work.

cies

unread,
Nov 27, 2008, 12:57:34 AM11/27/08
to ha...@googlegroups.com, koulikoff
hi koulikoff,

i fixed it i guess.. i attached a new haml.xml file to this mail. with
some more changed i will make a tarbal again and upload it to the
group properly.

thanks for pointing this out -- i'm glad i can share.

your cases are now in my testfile ;) (including the cyrilic)

thanks!
cies breijs.

haml.xml

FiXato

unread,
Nov 27, 2008, 2:30:24 AM11/27/08
to ha...@googlegroups.com, koulikoff
How about uploading all files to a git repository on github.com, so
everyone can easily keep track of changes and more easily suggest
improvements?

2008/11/27 cies <cies....@gmail.com>:

koulikoff

unread,
Nov 27, 2008, 2:35:11 AM11/27/08
to Haml
Thank you very much. The second problem is solved. But, alaz!, not the
first: '- if' is not recognized.

On Nov 27, 8:57 am, cies <cies.bre...@gmail.com> wrote:
> hi koulikoff,
>
> i fixed it i guess.. i attached a new haml.xml file to this mail. with
> some more changed i will make a tarbal again and upload it to the
> group properly.
>
> thanks for pointing this out -- i'm glad i can share.
>
> your cases are now in my testfile ;) (including the cyrilic)
>
> thanks!
> cies breijs.
>
> haml.xml
> 33KViewDownload

Nathan Weizenbaum

unread,
Nov 27, 2008, 2:39:05 AM11/27/08
to ha...@googlegroups.com
Yeah, this way I can have a consistent place to link to, as well.
Reply all
Reply to author
Forward
0 new messages