Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the D Programming Language #70

Open
andre2007 opened this issue Jun 16, 2019 · 3 comments
Open

Add support for the D Programming Language #70

andre2007 opened this issue Jun 16, 2019 · 3 comments

Comments

@andre2007
Copy link

Could you also support D?
The generic hightlight engine looks odd.

  • Comments /+ are not detected
  • Function names are highlighted instead of keywords
@AndiDittrich
Copy link
Member

not before v3.1 or v3.2.

btw. c/c++ highlighting should work (excluding keywords)

@andre2007
Copy link
Author

C/c++ unfortunately only works in theory. D supports in addition to /* */ also /+ +/, which allows nested comments and is also used for instructions for the D package manager (Dub).
All of my samples begins with these package manager instructions and they are rendered as normal code which just looks bad.

This is an example how it should look like

/+ dub.sdl:
    name "application"
    dependency "vibe-d" version="~>0.8.4"
    dependency "vibe-d:tls" version="*"
    subConfiguration "vibe-d:tls" "none"
+/

import vibe.vibe;

void main()
{
    listenHTTP(":5000", &handleRequest);
    runApplication();
}

void handleRequest(HTTPServerRequest req, HTTPServerResponse res)
{
    if (req.path == "/")
        res.writeBody("Hello, World!");
}

If you say 3.1 or 3.2, what does this means in weeks/months?

@AndiDittrich
Copy link
Member

AndiDittrich commented Jun 16, 2019

6 month ++

EnlighterJS v3.0.0 and the WordPress plugin v4 have a much higher priority for now....sry

in case c++ works (with the exception of comments...i can create a simple addon by extending the c++ language definition with the /+ comment style)

creating a complete new support file takes a few hours/days...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants