From kwrite-devel Tue Feb 18 14:09:23 2014 From: "Philipp A." Date: Tue, 18 Feb 2014 14:09:23 +0000 To: kwrite-devel Subject: Re: Default Styles (take two) Message-Id: X-MARC-Message: https://marc.info/?l=kwrite-devel&m=139273257422246 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============7393169653263114367==" --===============7393169653263114367== Content-Type: multipart/alternative; boundary=089e0112c4bcb7f85b04f2aed19a --089e0112c4bcb7f85b04f2aed19a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable whoops, didn=E2=80=99t get the round 2. OK. all together: 1. 2014-02-17 23:49 GMT+01:00 Milian Wolff : > 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, =E2=80=A6 * dsFunction: function/method declarations, i.e. the function name after the function keyword: defun =E2=80=A6, String =E2=80=A6() {}, functio= n =E2=80=A6() {}, def =E2=80=A6(): * 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, =E2=80=A6, http://golang.org/pkg/builtin/ i agree, is maybe to much. those are special constants/singletons like true, false, null, =E2=80=A6 we could highlight them as constants or keywor= ds. i still definitely want dsBuiltin! 2. dsBuiltinValue, dsValueKeyword or dsLanguageConstant are all the same thing, and imho preferable to dedicated dsBoolean, dsNull, dsEllipsis, =E2= =80=A6 the clarity issue can be fixed with *good documentation with examples about what all the styles mean*! 3. eureka! i=E2=80=99ve got an idea about rawString and specialString/regex= : how about dsVerbatimString and dsSpecialString (as well as dsSpecialChar) both? dsVerbatimString could be used for raw strings and markup verbatim sections and dsSpecialString/Char for LateX math mode and regexes (and their special escape sequences inside). i think that=E2=80=99s best, because ruby, perl, and coffeescript (at l= east) all have both raw strings and literal regexes, and dsVerbatimString is a more versatile name as =E2=80=9Craw string=E2=80=9D. --089e0112c4bcb7f85b04f2aed19a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
whoops, didn=E2=80=99t get the round 2. OK. all = together:

1. 2014-02-17 23:49 GMT+01:00 Milian Wolff <mail@milianw.de>:
=C2=A0=C2=A0=C2=A0
= =C2=A0=C2=A0=C2=A0 > Can you elaborate why you want to have [dsBuiltin],= and how it differs from
=C2=A0=C2=A0=C2=A0 > dsKeyword, dsFunction, dsConstant?

=C2=A0=C2= =A0=C2=A0 * dsKeyword: keywords. class, if, else, break, continue, match, s= witch, yield, function, def, try, raise, =E2=80=A6
=C2=A0=C2=A0=C2=A0 * = dsFunction: function/method declarations, i.e. the function name after the = function keyword: defun =E2=80=A6, String =E2=80=A6() {}, function =E2=80= =A6() {}, def =E2=80=A6():
=C2=A0=C2=A0=C2=A0 * dsConstant: NAMES_WITH_UNDERSCORES per convention
= =C2=A0=C2=A0=C2=A0 * 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, =E2=80=A6, http://golang.org/pkg/builtin/

=C2=A0=C2=A0=C2=A0 i agree,=C2=A0 is maybe to much. those are special c= onstants/singletons like true, false, null, =E2=80=A6 we could highlight th= em as constants or keywords.

=C2=A0=C2=A0=C2=A0 i still definitely w= ant dsBuiltin!

2. dsBuiltinValue, dsValueKey= word or=20 dsLanguageConstant are all the same thing, and imho preferable to dedicated= dsBoolean, dsNull, dsEllipsis, =E2=80=A6

=C2=A0=C2=A0=C2=A0 t= he clarity issue can be fixed with *good documentation with examples about = what all=20 the styles mean*!

3. eureka! i=E2=80=99ve got an ide= a about rawString and specialString/regex:

=C2=A0=C2=A0=C2=A0 how ab= out dsVerbatimString and dsSpecialString (as well as dsSpecialChar) both?
=C2=A0=C2=A0=C2=A0 dsVerbatimString could be used for raw strings and= markup verbatim sections and dsSpecialString/Char for LateX math mode and = regexes (and their special escape sequences inside).

=C2=A0=C2=A0=C2=A0 i think that=E2=80=99s best, because ruby, perl, and= coffeescript (at least) all have both raw strings and literal regexes, and= dsVerbatimString is a more versatile name as =E2=80=9Craw string=E2=80=9D.=
--089e0112c4bcb7f85b04f2aed19a-- --===============7393169653263114367== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel --===============7393169653263114367==--