www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1812] New: DDOC - Unicode identifiers are not correctly marked.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812

           Summary: DDOC - Unicode identifiers are not correctly marked.
           Product: D
           Version: 1.026
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ddoc
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: burton-radons shaw.ca


If a D identifier contains Unicode (such as führer), it will not be correctly
marked by DDOC, presumably because DDOC's way of finding identifiers was not
upgraded when D started allowing Unicode identifiers. Since there is no
reasonable workaround, I've given it major severity. The two attachments are
the source (in UTF-8) and the documentation produced from "dmd -D test.d".


-- 
Jan 30 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812






Created an attachment (id=222)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=222&action=view)
UTF-8 source code showing the problem.


-- 
Jan 30 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812






Created an attachment (id=223)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=223&action=view)
Documentation produced by "dmd -D test.d".


-- 
Jan 30 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812






-------
Looking at the attachments, it seems to work. What's the expected output?

BTW, DDoc is (a lot) newer than D's support for Unicode identifiers.


-- 
Jan 30 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812






What you should see is that the first fuhrer is underlined, but the second is
not, because it's not converted into a DDOC_DECL.

And hm, you're right - DDoc was 0.132, while Unicode identifiers was 0.74. I
guess I just noticed them in the opposite order.


-- 
Jan 30 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812






-------
I see, I didn't notice the missing underlining at all. Right you are, a bug it
is.


-- 
Jan 31 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812






Created an attachment (id=304)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=304&action=view)
Use Unicode parsing for identifiers.

This patch makes DDoc use Unicode to parse identifiers, which makes it properly
match them in the doc comments and etc.

-[Unknown]


-- 
Mar 29 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812


Ali Cehreli <acehreli yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |acehreli yahoo.com



Wanted to add that function parameters with unicode characters don't appear in
the generated documentation as well.

/**
 * BUG: The parameters are not listed under Params in the generated output
 *
 * Params:
 *     ü = first
 *     ş = second
 *     ğ = third
 *
 */
int foo(int ü, int ş, int ğ)
{
    return ğ;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 17 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1812


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



11:29:43 PST ---
Fixed dmd 1.051 and 2.036

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 06 2009