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

List:       kwrite-devel
Subject:    Re: Default Styles
From:       Milian Wolff <mail () milianw ! de>
Date:       2014-02-18 14:54:46
Message-ID: 1690840.1N5XSqPLHk () milian-kdab2
[Download RAW message or body]

On Tuesday 18 February 2014 14:43:44 Philipp A. wrote:
> 2014-02-17 23:49 GMT+01:00 Milian Wolff <mail@milianw.de>:
> > Can you elaborate why you want to have [dsBuiltin], and how it differs
> > from
> > dsKeyword, dsFunction, dsConstant?
> 
> dsKeyword: keywords. class, if, else, break, continue, match, switch,
> yield, function, def, try, raise, …
> dsFunction: function/method declarations, i.e. the function name after the
> function keyword: defun …, String …() {}, function …() {}, def …():
> dsConstant: NAMES_WITH_UNDERSCORES per convention
> 
> dsBuiltin: functions, classes, etc. which are defined in the default
> namespace: e.g. http://docs.python.org/3.3/library/functions.html and the
> types like int, set, …, http://golang.org/pkg/builtin/
> 
> i agree, dsBuiltinValue is maybe to much. those are special
> constants/singletons like true, false, null, … we could highlight them as
> constants or keywords.
> 
> but i still definitely want dsBuiltin!

Generally, why would one want to have a builtin function/class/... highlighted 
differently from a normal function/class/...?

> At least JavaScript and C++ don't have it. PHP has it though. Anyhow, this
> 
> > depends on semantic analysis (see my other email) and maybe needs a
> > different
> > approach. That said, why would one want to highlight exceptions
> > differently
> > from other objects? Where is this useful to know directly whether a type
> > is
> > actually an Exception?
> 
> the python highlighting has the builtin exceptions highlighted, which is
> useful for knowing that you spelled them wrong. but probably overkill and
> better done with completion.

The same is true for any other "builtin" stuff, no?

Bye

-- 
Milian Wolff
mail@milianw.de
http://milianw.de
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel

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

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