A space between class name and "[]" breaks the array declaration.
Closed this issue · 2 comments
felixhao28 commented
Description
Putting a space between class name and "[]" breaks the array declaration.
package com.sell.controller;
import java.util.*;
public class testbug{
public static void main(String [] args){
String str = "";
String [] arr = str.split("s");
// ^ space
for (int i = 0 ; i < arr.
Expected:
I fixed it by replacing
language-java/grammars/java.cson
Line 1432 in 27fa88a
to
(\\s*\\[\\])* # int[][]
sadikovi commented
Thanks, I will try patching it tonight.