Emacs-D-Mode-Maintainers / Emacs-D-Mode

An Emacs mode for D code.
GNU General Public License v3.0
84 stars 22 forks source link

Wrong syntax highlight for WYSIWYG strings #105

Closed Geod24 closed 3 years ago

Geod24 commented 3 years ago
Screen Shot 2021-01-20 at 0 48 25
    unittest
    {
        assert(absolute("/"[]) == true);
        assert(absolute(""[]) == false);

        version (Windows)
        {
            assert(absolute(r"\"[]) == true);
            assert(absolute(r"\\"[]) == true);
            assert(absolute(r"c:"[]) == true);
        }
    }

https://github.com/dlang/dmd/blob/8e5d57628f107b1d8e3b9bd7d788406cb3d5d768/src/dmd/root/filename.d#L141-L152

CyberShadow commented 3 years ago

Apparently, this string syntax is completely unimplemented, and never has been.

Geod24 commented 3 years ago

Thanks!

CyberShadow commented 3 years ago

You're very welcome, @Geod24 :) Thank you for all your work on D.