[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kate] [Bug 335941] please add syntax hightlight for rust-lang source file
From:       Martin Walch <walch.martin () web ! de>
Date:       2015-03-31 16:26:14
Message-ID: bug-335941-17878-Xjpd8TA7Hc () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=335941

--- Comment #4 from Martin Walch <walch.martin@web.de> ---
I just took a quick glance at the highlighting file:

* The value of the version attribute in the language tag must be a valid
decimal number, i.e. it should have the form x.y, not x.y.z. So, it would be
something like version="1.0" instead of version="1.0.0"

* The language tag should get a license and an author field.

* Code folding for if then else could be better. For example (taken from
example.rs):

let md = if prefix.chars().all(|c| c.is_whitespace()) {
    format!("{}.md", id)
} else {
    format!("{}/{}.md", prefix, id)
};

folding the if part yields

let md = if prefix.chars().all(|c| c.is_whitespace()) {
    format!("{}/{}.md", prefix, id)
};

which is confusing if you do not see that some lines are hidden. Also it is now
not anymore possible to hide the else part.

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic