Comments (7)
Variables with $
is correctly highlighted now.
Correct me if I'm wrong, but I don't think the "double-click" or ctrl-left
to jump words is managed by the languages. @50Wliu ?
If not than this can be closed.
from language-java.
Correct me if I'm wrong, but I don't think the "double-click" or ctrl-left to jump words is managed by the languages
If not, it is a problem (with Atom itself) / they should be: these operations are based on the concept of "words", and this concept is tightly related to the language: $ is a good example here (valid in JS / Java, not in some other languages), but in other languages (CSS for example) dash is also part of identifiers (words), and so on. Idem for Unicode characters.
from language-java.
@PhiLhoSoft I totally agree. It should be part of the language definition. But as it is now, the rest of this issue (aside from highlighting) does not belong to this repo (if that is so).
In CSS, stuff like dashes in e.g. border-top
behave the same way as how you're describing $
in java.
from language-java.
That's annoying, but indeed, if that's beyond your scope, please feel free to close the issue if you fixed what was within your reach.
from language-java.
Correct me if I'm wrong, but I don't think the "double-click" or ctrl-left to jump words is managed by the languages. @50Wliu ?
It actually is. editor.nonWordCharacters
can be modified by languages (and I have a local branch changing that). I think the Find and Replace "whole word" regex can't be changed though.
from language-java.
Cool, thanks for the correction!
from language-java.
I haven't understood the comment of @50Wliu until today, thanks to the comment atom/language-javascript#374 (comment)
So, we can at least fix that ourselves. Might be nice to be the default, though.
from language-java.
Related Issues (20)
- Enum not correctly hightlighted when mixed with constructor and code overrides HOT 1
- Inconsistency of variable and new-variable method call
- Inconsistency of type highlighting in new expression
- Catch parameter not correctly highlighted when declared in new line or with a comment in between HOT 4
- Scope variables in expressions HOT 3
- Custom color for arguments used in method body
- Java 14's new record keyword is not highlighted properly HOT 5
- Field has different pattern if "this" is omitted HOT 1
- Syntax highlighting is broken with array syntax HOT 1
- Wrong highlighting on 'new' keyword on inner classes HOT 6
- Variable camelCase name is incorrectly highlighted in a statement with "instanceof" HOT 2
- Highlight 'yield' keyword in switch statement
- Highlight keyword 'sealed' for Java 15 HOT 2
- Tree-sitter compatibility work
- Add support for `non-sealed` keyword HOT 4
- Java tree-sitter syntax highlighting does not parse annotations correctly HOT 1
- Java tree-sitter grammar does not consistently highlight constants
- @link highlighting broken when linking to class HOT 1
- module name and comments not highlighted in module-info.java HOT 4
- <unknown> is deprecated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-java.