bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[feature request] Recognise variable definitions as definitions


From: Leo Liu
Subject: [feature request] Recognise variable definitions as definitions
Date: Wed, 13 Feb 2013 20:43:51 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.93 (OS X 10.8.2)

Originated from this discussion
http://thread.gmane.org/gmane.comp.gnu.global.general/324.

BLACK, BLUE etc. (declarations) should be recognised as definitions and
not other symbols.

The relevant java snippet is as follows:

////////////////////////////////////////////////////////////
/**
 *  <i>Standard draw</i>. This class provides a basic capability for
 *  creating drawings with your programs. It uses a simple graphics model that
 *  allows you to create drawings consisting of points, lines, and curves
 *  in a window on your computer and to save the drawings to a file.
 *  <p>
 *  For additional documentation, see <a 
href="http://introcs.cs.princeton.edu/15inout";>Section 1.5</a> of
 *  <i>Introduction to Programming in Java: An Interdisciplinary Approach</i> 
by Robert Sedgewick and Kevin Wayne.
 */
public final class StdDraw implements ActionListener, MouseListener, 
MouseMotionListener, KeyListener {

    // pre-defined colors
    public static final Color BLACK      = Color.BLACK;
    public static final Color BLUE       = Color.BLUE;
    public static final Color CYAN       = Color.CYAN;
    public static final Color DARK_GRAY  = Color.DARK_GRAY;
    public static final Color GRAY       = Color.GRAY;
    public static final Color GREEN      = Color.GREEN;
    public static final Color LIGHT_GRAY = Color.LIGHT_GRAY;
    public static final Color MAGENTA    = Color.MAGENTA;
    public static final Color ORANGE     = Color.ORANGE;
    public static final Color PINK       = Color.PINK;
    public static final Color RED        = Color.RED;
    public static final Color WHITE      = Color.WHITE;
    public static final Color YELLOW     = Color.YELLOW;

    ......
}
////////////////////////////////////////////////////////////




reply via email to

[Prev in Thread] Current Thread [Next in Thread]