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

List:       kwrite-devel
Subject:    Re: Re: Default Styles
From:       Dominik Haumann <dhaumann () kde ! org>
Date:       2014-02-18 8:49:28
Message-ID: 10716492.Dm4NiabpaS () obiwan
[Download RAW message or body]

On Monday, February 17, 2014 23:21:12 Philipp A. wrote:
> i'll comment a bit:
> 
> 2014-02-17 22:43 GMT+01:00 Dominik Haumann <dhaumann@kde.org>:
> > + dsExtension   (new, same as keyword, e.g. Qt, tr1, and other extensions)
> > + dsControlFlow (new, or dsStructure, if, else, switch, continue)
> > + dsVariable    (new, $bla in php or perl, or dsIdentifier?)
> > ? dsSection     (new, e.g. [general] in ini file, or \section in LaTeX)
> 
> couldn't one use dsRegionMarker for it?

yes, but dsRegionMarker is curerntly in the Comments & Documentation section. 
So if we want to have categories, we'd abuse this here.

Anyways, removed for now. See next mail.

> > Strings
> > ? dsRawString   (new, '' in Perl, CoffeeScript and Bash, r'' or r"" in
> > Python)
> 
> as said, many languages have this. definitely for it.
> 
> + dsRegExp      (new, JavaScript and other languages heavily rely on it)
> 
> > ? dsRegExpOp    (new, RegExp semantics: ^\., [:space:], ...)
> 
> maybe we can use dsOther instead of dsRegex and add a dsOtherOp? that way
> it could also be used for sth. like LaTeX math mode.
> 
> just an idea though.
> 
> Numbers
> 
> > + dsOperator    (new, for +-*/::<> etc..., lots of languages define this)
> > ? dsConstant    (new, if needed? maybe M_PI or similar things? not
> > sure...)
> 
> also not sure. the coffee script highlighting displays
> TEXT_WITH_UNDERSCORES differently.
> 
> Misc
> 
> > ? dsLink        (new, url, path)
> > ? dsDeprecated  (new: maybe for deprecated stuff?)
> 
> hmm, maybe. seems a bit far-fetched ;) (for real: no preference for or
> against)

both removed.

> ? dsReference: Markdown links, C pointers, LaTeX refs
> 

currently removed.

> maybe merge dsLink and dsReference?
> 
> Comments & Documentation
> 
> > + dsDescription (new, e.g. @brief in doxygen, or """ in Python?)
> > + dsAnnotation  (new, e.g. @... in Java, @param in Doxygen)
> > + dsCommentVar  (new, e.g. foobar in "@param foobar", etc...)
> > ? dsExample     (new, e.g. @code ... @endcode, or dsVerbatim ? )
> 
> idk… why "example"?
> 
> Notifications
> 
> > ? dsPositive    (new, e.g. NOTE)
> > ? dsInformation (new, e.g. TODO)
> > ? dsWarning     (new, HACK, ###, FIXME)
> 
> maybe we just hardcode highlighting of those keywords inside dsComments?
> 
> > I'm currently not convinced of:
> > ? dsInterface: C# interfaces, Scala mixins, declarations, protocols
> 
> yeah, ok, scratch it. dsDataType is enough for classes and interfaces
> 
> ? dsBuiltin: Value keywords like Java's true, R's FALSE, Python's 
None,
> 
> >              JS' null, as well as Python's open, reversed, ..., and 
Go's
> >              predeclared identifiers like new, print, ...
> > 
> > ? dsBuiltinValue
> > ? dsBuiltinFunction
> 
> i'm definitely for some combination of those, at least the one dsBuiltin.
> many languages have a list of those in their highlightning files and style
> them somehow.
> 
> ? dsException: Often with Exception or Error in the name
> 
> 
> i'm coming from python here. do other languages also have standard
> exception hierarchies? if not, scratch that.
> 
> ? dsSymbol
> 
> 
> dunno. maybe too much?

_______________________________________________
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