更新docsify阅读方式

This commit is contained in:
LingCoder
2019-03-30 20:31:44 +08:00
parent ddfd2e2168
commit 9d522a98c6
1812 changed files with 101698 additions and 435 deletions

View File

@@ -0,0 +1,32 @@
void foo(int a) {}
foo(0);
Bar::foo;
----------------------------------------------------
[
["keyword", "void"],
["function", "foo"],
["punctuation", "("],
["keyword", "int"],
" a",
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function", "foo"],
["punctuation", "("],
["number", "0"],
["punctuation", ")"],
["punctuation", ";"],
["class-name", "Bar"],
["operator", ":"],
["operator", ":"],
["function", "foo"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for functions.

View File

@@ -0,0 +1,67 @@
public class Solo<T> {}
Solo<Integer> val = new Solo<Integer>();
Duo<Double, Character> dual = new Duo<Double, Character>(12.2585, 'C');
----------------------------------------------------
[
["keyword", "public"],
["keyword", "class"],
["class-name", "Solo"],
["generics", [
["punctuation", "<"],
["class-name", "T"],
["punctuation", ">"]
]],
["punctuation", "{"],
["punctuation", "}"],
["class-name", "Solo"],
["generics", [
["punctuation", "<"],
["class-name", "Integer"],
["punctuation", ">"]
]],
" val ",
["operator", "="],
["keyword", "new"],
["class-name", "Solo"],
["generics", [
["punctuation", "<"],
["class-name", "Integer"],
["punctuation", ">"]
]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["class-name", "Duo"],
["generics", [
["punctuation", "<"],
["class-name", "Double"],
["punctuation", ","],
["class-name", "Character"],
["punctuation", ">"]
]],
" dual ",
["operator", "="],
["keyword", "new"],
["class-name", "Duo"],
["generics", [
["punctuation", "<"],
["class-name", "Double"],
["punctuation", ","],
["class-name", "Character"],
["punctuation", ">"]
]],
["punctuation", "("],
["number", "12.2585"],
["punctuation", ","],
["string", "'C'"],
["punctuation", ")"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for generics.

View File

@@ -0,0 +1,27 @@
public class AllChangesIndexer extends SiteIndexer<Change.Id, ChangeData, ChangeIndex> {
----------------------------------------------------
[
["keyword", "public"],
["keyword", "class"],
["class-name", "AllChangesIndexer"],
["keyword", "extends"],
["class-name", "SiteIndexer"],
["generics", [
["punctuation", "<"],
["class-name", "Change"],
["punctuation", "."],
["class-name", "Id"],
["punctuation", ","],
["class-name", "ChangeData"],
["punctuation", ","],
["class-name", "ChangeIndex"],
["punctuation", ">"]
]],
["punctuation", "{"]
]
----------------------------------------------------
Checks for generics. See #1351

View File

@@ -0,0 +1,59 @@
abstract continue for
new
switch assert default
goto package synchronized
boolean do if private
this break double
implements
protected throw byte else
import public throws case
enum
instanceof
return transient catch
extends
int short try char
final
interface
static void
class
finally long
strictfp volatile const
float native super while
var null
module requires transitive
exports uses open
opens with to provides
----------------------------------------------------
[
["keyword", "abstract"], ["keyword", "continue"], ["keyword", "for"],
["keyword", "new"],
["keyword", "switch"], ["keyword", "assert"], ["keyword", "default"],
["keyword", "goto"], ["keyword", "package"], ["keyword", "synchronized"],
["keyword", "boolean"], ["keyword", "do"], ["keyword", "if"], ["keyword", "private"],
["keyword", "this"], ["keyword", "break"], ["keyword", "double"],
["keyword", "implements"],
["keyword", "protected"], ["keyword", "throw"], ["keyword", "byte"], ["keyword", "else"],
["keyword", "import"], ["keyword", "public"], ["keyword", "throws"], ["keyword", "case"],
["keyword", "enum"],
["keyword", "instanceof"],
["keyword", "return"], ["keyword", "transient"], ["keyword", "catch"],
["keyword", "extends"],
["keyword", "int"], ["keyword", "short"], ["keyword", "try"], ["keyword", "char"],
["keyword", "final"],
["keyword", "interface"],
["keyword", "static"], ["keyword", "void"],
["keyword", "class"],
["keyword", "finally"], ["keyword", "long"],
["keyword", "strictfp"], ["keyword", "volatile"], ["keyword", "const"],
["keyword", "float"], ["keyword", "native"], ["keyword", "super"], ["keyword", "while"],
["keyword", "var"], ["keyword", "null"],
["keyword", "module"], ["keyword", "requires"], ["keyword", "transitive"],
["keyword", "exports"], ["keyword", "uses"], ["keyword", "open"],
["keyword", "opens"], ["keyword", "with"], ["keyword", "to"], ["keyword","provides"]
]
----------------------------------------------------
Checks for all keywords.

View File

@@ -0,0 +1,158 @@
module com.js.prism {
exports java.net.http;
exports jdk.internal.editor.spi to jdk.jshell;
requires java.base;
requires transitive java.xml;
uses java.net.ContentHandlerFactory;
opens java.time.DateTime;
opens java.time.LocalDateTime to java.logging;
provides com.modules.hello.HelloInterface with com.modules.hello.HelloModules;
}
----------------------------------------------------
[
["keyword", "module"],
["namespace",
["com",
["punctuation", "."],
"js",
["punctuation", "."],
"prism"
]
],
["punctuation", "{"],
["keyword", "exports"],
["namespace",
[
"java",
["punctuation", "."],
"net",
["punctuation", "."],
"http"
]
],
["punctuation", ";"],
["keyword", "exports"],
["namespace",
[
"jdk",
["punctuation", "."],
"internal",
["punctuation", "."],
"editor",
["punctuation", "."],
"spi"
]
],
["keyword", "to"],
["namespace",
[
"jdk",
["punctuation", "."],
"jshell"
]
],
["punctuation", ";"],
["keyword", "requires"],
["namespace",
[
"java",
["punctuation", "."],
"base"
]
],
["punctuation", ";"],
["keyword", "requires"],
["keyword", "transitive"],
["namespace",
[
"java",
["punctuation", "."],
"xml"
]
],
["punctuation", ";"],
["keyword", "uses"],
["namespace",
[
"java",
["punctuation", "."],
"net"
]
],
["punctuation", "."],
["class-name", "ContentHandlerFactory"],
["punctuation", ";"],
["keyword", "opens"],
["namespace",
[
"java",
["punctuation", "."],
"time"
]
],
["punctuation", "."],
["class-name", "DateTime"],
["punctuation", ";"],
["keyword", "opens"],
["namespace",
[
"java",
["punctuation", "."],
"time"
]
],
["punctuation", "."],
["class-name", "LocalDateTime"],
["keyword", "to"],
["namespace",
[
"java",
["punctuation", "."],
"logging"
]
],
["punctuation", ";"],
["keyword", "provides"],
["namespace",
[
"com",
["punctuation", "."],
"modules",
["punctuation", "."],
"hello"
]
],
["punctuation", "."],
["class-name", "HelloInterface"],
["keyword", "with"],
["namespace",
[
"com",
["punctuation", "."],
"modules",
["punctuation", "."],
"hello"
]
],
["punctuation", "."],
["class-name", "HelloModules"],
["punctuation", ";"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for module definition.

View File

@@ -0,0 +1,60 @@
42
42d
42L
1.2e3f
0.1E-4f
0.2e+1f
0xBadFace
0x1.8p1
0xa.fp-2
0xa.fp+2
0xa.p+3f
0x.fp+3f
0b11110000
1_2_3
1_2.3_4e-5_6
0x1_2
0x0_1__2_3
0b1_1_1_1__0_0_0_0
----------------------------------------------------
[
["number", "42"],
["number", "42d"],
["number", "42L"],
["number", "1.2e3f"],
["number", "0.1E-4f"],
["number", "0.2e+1f"],
["number", "0xBadFace"],
["number", "0x1.8p1"],
["number", "0xa.fp-2"],
["number", "0xa.fp+2"],
["number", "0xa.p+3f"],
["number", "0x.fp+3f"],
["number", "0b11110000"],
["number", "1_2_3"],
["number", "1_2.3_4e-5_6"],
["number", "0x1_2"],
["number", "0x0_1__2_3"],
["number", "0b1_1_1_1__0_0_0_0"]
]
----------------------------------------------------
Checks for binary, hexadecimal and decimal numbers.

View File

@@ -0,0 +1,37 @@
+ ++ +=
- -- -=
! !=
< << <= <<=
> >> >>> >= >>= >>>=
= ==
& && &=
| || |=
? : ~
^ ^=
* *=
/ /=
% %=
->
----------------------------------------------------
[
["operator", "+"], ["operator", "++"], ["operator", "+="],
["operator", "-"], ["operator", "--"], ["operator", "-="],
["operator", "!"], ["operator", "!="],
["operator", "<"], ["operator", "<<"], ["operator", "<="], ["operator", "<<="],
["operator", ">"], ["operator", ">>"], ["operator", ">>>"], ["operator", ">="], ["operator", ">>="], ["operator", ">>>="],
["operator", "="], ["operator", "=="],
["operator", "&"], ["operator", "&&"], ["operator", "&="],
["operator", "|"], ["operator", "||"], ["operator", "|="],
["operator", "?"], ["operator", ":"], ["operator", "~"],
["operator", "^"], ["operator", "^="],
["operator", "*"], ["operator", "*="],
["operator", "/"], ["operator", "/="],
["operator", "%"], ["operator", "%="],
["operator", "->"]
]
----------------------------------------------------
Checks for all operators.

View File

@@ -0,0 +1,80 @@
package java.lang;
import java.lang.Math;
import java.lang.*;
import static java.lang.Math.PI;
import static java.lang.Math.sin;
import static java.lang.Math.*;
----------------------------------------------------
[
["keyword", "package"],
["namespace", [
"java",
["punctuation", "."],
"lang"
]],
["punctuation", ";"],
["keyword", "import"],
["namespace", [
"java",
["punctuation", "."],
"lang"
]],
["punctuation", "."],
["class-name", "Math"],
["punctuation", ";"],
["keyword", "import"],
["namespace", [
"java",
["punctuation", "."],
"lang"
]],
["punctuation", "."],
"*",
["punctuation", ";"],
["keyword", "import"],
["keyword", "static"],
["namespace", [
"java",
["punctuation", "."],
"lang"
]],
["punctuation", "."],
["class-name", "Math"],
["punctuation", "."],
"PI",
["punctuation", ";"],
["keyword", "import"],
["keyword", "static"],
["namespace", [
"java",
["punctuation", "."],
"lang"
]],
["punctuation", "."],
["class-name", "Math"],
["punctuation", "."],
"sin",
["punctuation", ";"],
["keyword", "import"],
["keyword", "static"],
["namespace", [
"java",
["punctuation", "."], "lang"
]], ["punctuation", "."],
["class-name", "Math"],
["punctuation", "."],
"*",
["punctuation", ";"]
]
----------------------------------------------------
Checks for packages.