mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 13:09:11 +00:00
Fixed last dot in import "impot java." breaking syntax highlight
This commit is contained in:
1 parent
83f45fe6b8
commit
0d03871444
1 file changed
+1
-1
@@ -41,7 +41,7 @@ public class JavaTextContainer extends TextContainer {
|
||||
// Allows optional whitespace (including newlines) around the dots so wrapped imports match.
|
||||
// Match imports while allowing optional whitespace/newlines around dots.
|
||||
public static final Pattern IMPORT = Pattern.compile(
|
||||
"(?m)\\bimport\\s+(?:static\\s+)?([A-Za-z_][A-Za-z0-9_]*(?:\\s*\\.\\s*[A-Za-z_][A-Za-z0-9_]*)*)(?:\\s*\\.\\s*\\*)?\\s*(?:;|$)");
|
||||
"(?m)\\bimport\\s+(?:static\\s+)?([A-Za-z_][A-Za-z0-9_]*(?:\\s*\\.\\s*[A-Za-z_][A-Za-z0-9_]*)*)(?:\\s*\\.\\s*\\*?)?\\s*(?:;|$)");
|
||||
|
||||
// ClassPathFinder for resolving imports and determining class types
|
||||
private final ClassPathFinder classPathFinder = new ClassPathFinder();
|
||||
|
||||
Reference in new issue
Block a user