Skip to content

Commit e31bc36

Browse files
dklilleymarijnh
authored andcommitted
[clike mode] Remove 'float' as Java keyword
1 parent 58df150 commit e31bc36

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

mode/clike/clike.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
467467
def("text/x-java", {
468468
name: "clike",
469469
keywords: words("abstract assert break case catch class const continue default " +
470-
"do else enum extends final finally float for goto if implements import " +
470+
"do else enum extends final finally for goto if implements import " +
471471
"instanceof interface native new package private protected public " +
472472
"return static strictfp super switch synchronized this throw throws transient " +
473473
"try volatile while @interface"),

mode/clike/test.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,30 @@
136136
"[comment ///// let / me / show / you /////]",
137137
"[comment */]");
138138

139+
var mode_java = CodeMirror.getMode({indentUnit: 2}, "text/x-java");
140+
function MTJAVA(name) { test.mode("java_" + name, mode_java, Array.prototype.slice.call(arguments, 1)); }
141+
MTJAVA("types",
142+
"[type byte];",
143+
"[type short];",
144+
"[type int];",
145+
"[type long];",
146+
"[type float];",
147+
"[type double];",
148+
"[type boolean];",
149+
"[type char];",
150+
"[type void];",
151+
"[type Boolean];",
152+
"[type Byte];",
153+
"[type Character];",
154+
"[type Double];",
155+
"[type Float];",
156+
"[type Integer];",
157+
"[type Long];",
158+
"[type Number];",
159+
"[type Object];",
160+
"[type Short];",
161+
"[type String];",
162+
"[type StringBuffer];",
163+
"[type StringBuilder];",
164+
"[type Void];");
139165
})();

0 commit comments

Comments
 (0)