From kwrite-devel Sun Feb 23 21:41:38 2014 From: Andrey Matveyakin Date: Sun, 23 Feb 2014 21:41:38 +0000 To: kwrite-devel Subject: Re: Default Styles in KF5 Message-Id: X-MARC-Message: https://marc.info/?l=kwrite-devel&m=139319171200807 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============3335914904823038353==" --===============3335914904823038353== Content-Type: multipart/alternative; boundary=001a1133e6604fa46704f319b8c0 --001a1133e6604fa46704f319b8c0 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Feb 24, 2014 at 1:15 AM, Dominik Haumann wrote: > On Monday 24 February 2014 00:04:27 Andrey Matveyakin wrote: > > Hi, > > > > Let me put in my two cents. > > > > First, may be it would be useful to have something like > > dsFunctionAttribute (like [[C++14_attributes]] or @PythonDecorators) > > Matthew has used dsAnnotation for it, but may be it would be better not > to > > mix rules for code and comments? > > Hm, true. With "@... in Java" I meant @override annotations directly in > front > of a function. Strictly speaking these are not comments. > > Do other agree to add a > + dsAttribute > that is supposed to be used in code for this reason (also for C++ __*__)? > > Or we use dsAnnotation in code, and additionally include dsCommentCommand. > Preferences? > > > Second, aren't there any languages other than C/C++ which have a concept > of > > preprocessor? (I honestly don't know) May be, some assemblers? Even if > > C/C++ is so unique, we still might want to have > > dsPreprocessor > > to share this color between highlight files for this language family, > since > > we are going to have at least 3 of them (C, C++, C++/Qt) or may be more > > depending on the result of discussions in parallel threads. > > Yes, other languages exist that have it, too. For instance, m4 is a > well-known > preprocessor. > > @others: being a well-known construct, any objections to > + dsPreprocessor? > > > And could you please enlighten me, what are dsFunction and dsDataType? > Only > > things which can be classified as functions or types based on purely > > syntactic rules, or some build-in stuff like STL too? > > As of now, dsFunction can be used for everything that is a function. For > instance, def blabla in Python. > dsDataType is a type that is used for arbitrary data in other .xml files > (grep > dsDataType *.xml in the xml folder). > Ok, I see that dsDataType and dsFunction are sometimes recognized by list-based lookup. If so, I don't understand the dsExtension rule. Many things can be an extension, not just a keyword, but also a control flow (e.g. Qt "foreach"), a data type, variable or function defined in a library. Which will be marked as dsExtension? All of them or only non-control-flow-like-keyword ones? > > Greetings, > Dominik > _______________________________________________ > KWrite-Devel mailing list > KWrite-Devel@kde.org > https://mail.kde.org/mailman/listinfo/kwrite-devel > --001a1133e6604fa46704f319b8c0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On M= on, Feb 24, 2014 at 1:15 AM, Dominik Haumann <dhaumann@kde.org> wrote:
On Monday= 24 February 2014 00:04:27 Andrey Matveyakin wrote:
> Hi,
>
> Let me put in my two cents.
>
> First, may be it would be useful to have something like
> dsFunctionAttribute (like [[C++14_attributes]] or @PythonDecorators) > Matthew has used dsAnnotation for it, but may be it would be better no= t to
> mix rules for code and comments?

Hm, true. With "@... in Java" I meant @override annotations= directly in front
of a function. Strictly speaking these are not comments.

Do other agree to add a
+ dsAttribute
that is supposed to be used in code for this reason (also for C++ __*__)?
Or we use dsAnnotation in code, and additionally include dsCommentCommand.<= br> Preferences?

> Second, aren't there any languages other than C/C++ which have a c= oncept of
> preprocessor? (I honestly don't know) May be, some assemblers? Eve= n if
> C/C++ is so unique, we still might want to have
> dsPreprocessor
> to share this color between highlight files for this language family, = since
> we are going to have at least 3 of them (C, C++, C++/Qt) or may be mor= e
> depending on the result of discussions in parallel threads.

Yes, other languages exist that have it, too. For instance, m4 is a w= ell-known
preprocessor.

@others: being a well-known construct, any objections to
+ dsPreprocessor?

> And could you please enlighten me, what are dsFunction and dsDataType?= Only
> things which can be classified as functions or types based on purely > syntactic rules, or some build-in stuff like STL too?

As of now, dsFunction can be used for everything that is a function. = For
instance, def blabla in Python.
dsDataType is a type that is used for arbitrary data in other .xml files (g= rep
dsDataType *.xml in the xml folder).

Ok, I see tha= t dsDataType and dsFunction are sometimes recognized by list-based lookup. = If so, I don't understand the dsExtension rule. Many things can be an e= xtension, not just a keyword, but also a control flow (e.g. Qt “forea= ch”), a data type, variable or function defined in a library. Which w= ill be marked as dsExtension? All of them or only non-control-flow-like-key= word ones?
 

Greetings,
Dominik
_________________________________________= ______
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel

--001a1133e6604fa46704f319b8c0-- --===============3335914904823038353== 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 --===============3335914904823038353==--