This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Dollar should be part of identifiers #33
Open
Description
I opened a similar issue for JavaScript: atom/language-javascript#374
Frankly, I dont use Atom to edit Java code, I use Eclipse instead. Given the low number of issues here, either I am not alone, or you are very good... 😛
OK, let's repeat the gist of the previous issue:
Atom 1.7.3, Windows 7, although the latter is probably not relevant...
AFAIK, $ is part of the valid characters in identifiers, like underscore. Yet it is treated as a foreign punctuation character in many features of Atom.
Examples:
- Double click to select the identifier: the $ isn't selected (if prefix or suffix) or stops the selection (in the middle).
- Word move with Ctrl+Left / Right arrow: stops on $
- Search log with Whole Word option: selects the log part of
$log
. - If an identifier has a $ in its middle, the part after the $ is highlighted differently.
I know that Sun recommended not to use $ in identifiers, keeping this usage for themselves, but yet it is a valid char, and should be treated as such.