dberg / c4 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
class X {
void f() {
}
Produces
[(c4j-sh-keyword 1 6)(c4j-sh-reference-type-id 7 11)(c4j-sh-keyword 18 24)(c4j-sh-keyword 25 30)(c4j-sh-reference-type-id 31 32)(c4j-sh-op 32 33)(c4j-sh-reference-type-id 33 34)(c4j-sh-op 34 35)(c4j-sh-keyword 43 49)(c4j-sh-op 50 51)(c4j-sh-reference-type-id 51 52)(c4j-sh-op 52 53)(c4j-sh-reference-type-id 54 58)(c4j-sh-op 58 59)(c4j-sh-reference-type-id 59 60)(c4j-sh-op 60 61)(c4j-sh-op 62 63)(c4j-sh-reference-type-id 61 62)(c4j-sh-identifier 64 65)(c4j-sh-op 65 66)(c4j-sh-op 66 67)(c4j-sh-op 68 69)(c4j-sh-keyword 78 84)(c4j-sh-keyword 85 88)(c4j-sh-reference-type-id 89 93)(c4j-sh-op 94 95)(c4j-sh-reference-type-id 94 95)(c4j-sh-op 95 96)(c4j-sh-op 97 98)(c4j-sh-reference-type-id 96 97)(c4j-sh-op 98 99)(c4j-sh-op 99 100)(c4j-sh-op 100 101)(c4j-sh-op 106 107)(c4j-sh-keyword 111 116)(c4j-sh-reference-type-id 117 118)(c4j-sh-keyword 125 128)(c4j-sh-identifier 129 130)(c4j-sh-op 131 132)]
But (point-max)
is 27.
Double indentation is assumed in a for loop without braces. Example
for (...)
stmt;
Indentation of case statements is of by one level.
The keyword 'default' is missing syntax highlighting.
o.foo(
param
);
float[] fa = {
1,
2,
3
};
Hitting tab modifies the buffer even when no change is needed.
Check syntax highlighting in
boolean b =true;
The equals operator is also affected.
res = method(
method1(
param1),
method2(
param2)
);
Comments are not include in the indent map. Example:
class C {
// comments
}
Indentation after annotation is broken:
class C {
....@OverRide
............public void m() {}
}
static {
........expr;
....}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.