Skip to content

Commit a989c01

Browse files
bronsastuarthalloway
authored andcommitted
Fix CLJ-873 for EdnReader too, see 88cad25
This commit also removes now useless SLASH and CLOJURE_SLASH vars from LispReader Signed-off-by: Stuart Halloway <[email protected]>
1 parent 94637e4 commit a989c01

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/jvm/clojure/lang/EdnReader.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ public class EdnReader{
2424

2525
static IFn[] macros = new IFn[256];
2626
static IFn[] dispatchMacros = new IFn[256];
27-
static Pattern symbolPat = Pattern.compile("[:]?([\\D&&[^/]].*/)?([\\D&&[^/]][^/]*)");
27+
static Pattern symbolPat = Pattern.compile("[:]?([\\D&&[^/]].*/)?(/|[\\D&&[^/]][^/]*)");
2828
static Pattern intPat =
2929
Pattern.compile(
3030
"([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?");
3131
static Pattern ratioPat = Pattern.compile("([-+]?[0-9]+)/([0-9]+)");
3232
static Pattern floatPat = Pattern.compile("([-+]?[0-9]+(\\.[0-9]*)?([eE][-+]?[0-9]+)?)(M)?");
33-
static final Symbol SLASH = Symbol.intern("/");
3433

3534
static IFn taggedReader = new TaggedReader();
3635

@@ -278,10 +277,6 @@ else if(s.equals("false"))
278277
{
279278
return RT.F;
280279
}
281-
else if(s.equals("/"))
282-
{
283-
return SLASH;
284-
}
285280

286281
Object ret = null;
287282

src/jvm/clojure/lang/LispReader.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ public class LispReader{
6767
"([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?");
6868
static Pattern ratioPat = Pattern.compile("([-+]?[0-9]+)/([0-9]+)");
6969
static Pattern floatPat = Pattern.compile("([-+]?[0-9]+(\\.[0-9]*)?([eE][-+]?[0-9]+)?)(M)?");
70-
static final Symbol SLASH = Symbol.intern("/");
71-
static final Symbol CLOJURE_SLASH = Symbol.intern("clojure.core","/");
7270
//static Pattern accessorPat = Pattern.compile("\\.[a-zA-Z_]\\w*");
7371
//static Pattern instanceMemberPat = Pattern.compile("\\.([a-zA-Z_][\\w\\.]*)\\.([a-zA-Z_]\\w*)");
7472
//static Pattern staticMemberPat = Pattern.compile("([a-zA-Z_][\\w\\.]*)\\.([a-zA-Z_]\\w*)");

0 commit comments

Comments
 (0)