Bug 149313 - add support for HAML and SASS syntax highlighting
Summary: add support for HAML and SASS syntax highlighting
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2007-08-28 22:44 UTC by patcito
Modified: 2019-08-19 21:18 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
I use this file (23.09 KB, text/xml)
2018-09-25 05:31 UTC, Dmitri Koulikoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description patcito 2007-08-28 22:44:56 UTC
Version:           2.5.7 (using KDE 3.5.7, Kubuntu (feisty) 4:3.5.7-0ubuntu1~feisty1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.20-15-generic

HAML and SASS are template languages for Ruby. HAML is for writing XHTML and SASS is for righting CSS code. They both Ruby but with some indentation and some specific differences.

this is the page:
http://haml.hamptoncatlin.com/

here is the page for HAML and SASS highlighting for other editors:
http://groups.google.com/group/haml/web/syntax-highlighting

HAML and CSS are extremely useful and allow to right beautiful code faster so it would be great to have support for it in kate.

Thanks in advance
Comment 1 patcito 2007-08-28 22:46:03 UTC
oops, sorry for that right/write typo.
Comment 2 patcito 2007-08-28 22:52:08 UTC
also I should add that it is used with rails so it should use the rails syntax (from rhtml.xml I guess) and the ruby syntax.
Comment 3 Cies Breijs 2008-11-26 04:54:37 UTC
someone made a haml highlighting scheme for kate once but i couldn't find it online anymore.

mailed the author, no response. got fed up, rolled my own, see the post here:

http://groups.google.com/group/haml/browse_thread/thread/bece1c80f88a9860#

it's not finished yet but it does 90%, when it get the multiline indentation delimited comments right it is ready to go in kde i guess.

i used the rhtml scheme as a starting point. i ripped out all the rails stuff because every framework can use haml, and every framework has different helper methods. i'm a merb guy.

good luck with it! i hope i (we all) can finish the job (see the TODOs at the start of the haml.xml file), and KDE can gain haml (and hopefully sass aswel) support out of the box.

cheers,
cies breijs.
Comment 4 Christoph Cullmann 2011-08-12 08:17:46 UTC
We need a final file for inclusion, else closing this now ;)
If you have a working version, please add a license and we can include it. (prefering LGPL)
Comment 5 Andrew Crouthamel 2018-09-25 03:51:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Dmitri Koulikoff 2018-09-25 05:31:48 UTC
Created attachment 115214 [details]
I use this file

Hello, I use this file for haml.

But for sass I use css formatting, but it works not very well.

What is completely missing is formatting for less.
Comment 7 Dmitri Koulikoff 2018-09-25 05:36:37 UTC
I tried to change the status in my last comment, but it did not change
Comment 8 Jonathan Poelen 2019-08-19 21:18:08 UTC
Git commit 0edc0cb01ab7f43fde82e5d80c6fc42c93d5fbe0 by Jonathan Poelen.
Committed on 19/08/2019 at 21:32.
Pushed by jpoelen into branch 'master'.

New syntax: SASS. Some fixes for CSS and SCSS

Summary:
CSS, SCSS (CSS4):

  - number in scientific notation: `12.3e3`
  - hexadecimal rgba: `#fffa` and `#ffffffaa`
  - new units: cap,ic,lh,rlh,vi,vb,vmin,vmax,Q,in,dpi,dpcm,dppx,x
  - remove unknown unit: vm
  - new pseudo selector: matches

SCSS:

  - fix nested function
  - fix `...` as operator
  - fix interpolation as property

SASS:

  - new syntax

Reviewers: #framework_syntax_highlighting, dhaumann, cullmann

Reviewed By: #framework_syntax_highlighting, dhaumann

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: #kate, #frameworks

Differential Revision: https://phabricator.kde.org/D23245

A  +824  -0    autotests/folding/highlight.sass.fold
M  +10   -0    autotests/folding/highlight.scss.fold
M  +1    -1    autotests/html/highlight.css.html
A  +831  -0    autotests/html/highlight.sass.html
M  +15   -5    autotests/html/highlight.scss.html
M  +1    -1    autotests/html/review128925-1.scss.html
A  +824  -0    autotests/input/highlight.sass
M  +10   -0    autotests/input/highlight.scss
M  +1    -1    autotests/reference/highlight.css.ref
A  +824  -0    autotests/reference/highlight.sass.ref
M  +15   -5    autotests/reference/highlight.scss.ref
M  +1    -1    autotests/reference/review128925-1.scss.ref
M  +9    -6    data/syntax/css.xml
A  +467  -0    data/syntax/sass.xml
M  +31   -13   data/syntax/scss.xml

https://commits.kde.org/syntax-highlighting/0edc0cb01ab7f43fde82e5d80c6fc42c93d5fbe0