Skip to content

Commit

Permalink
revert reader version until we figure out the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrand committed Aug 20, 2024
1 parent 8dd8e6d commit 0c74f22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
org.clojure/tools.deps.alpha {:mvn/version "0.12.1162"}
org.slf4j/slf4j-simple {:mvn/version "1.7.36"}
org.yaml/snakeyaml {:mvn/version "2.2"}
org.clojuredart/java-host-lisp-reader {:mvn/version "1.11.1633"}}}
org.clojuredart/java-host-lisp-reader {:mvn/version "1.11.1602"}}}
8 changes: 1 addition & 7 deletions java/src/cljd/lang/LispReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public class LispReader{
final static Keyword TAG_KEY = Keyword.intern(null, "tag");
static Keyword LINE_KEY = Keyword.intern(null, "line");
static Keyword COLUMN_KEY = Keyword.intern(null, "column");
static Keyword END_LINE_KEY = Keyword.intern(null, "end-line");
static Keyword END_COLUMN_KEY = Keyword.intern(null, "end-column");

static Namespace currentNS(){
return (Namespace) RT.CURRENT_NS.deref();
Expand Down Expand Up @@ -1026,8 +1024,6 @@ else if(!(meta instanceof IPersistentMap))
{
meta = RT.assoc(meta, LINE_KEY, RT.get(meta, LINE_KEY, line));
meta = RT.assoc(meta, COLUMN_KEY, RT.get(meta,COLUMN_KEY, column));
meta = RT.assoc(meta, END_LINE_KEY, RT.get(meta, END_LINE_KEY, ((LineNumberingPushbackReader) r).getLineNumber()));
meta = RT.assoc(meta, END_COLUMN_KEY, RT.get(meta,END_COLUMN_KEY, ((LineNumberingPushbackReader) r).getColumnNumber()-1));
}
if(o instanceof IReference)
{
Expand Down Expand Up @@ -1184,7 +1180,7 @@ else if(form instanceof Keyword
if(form instanceof IObj && RT.meta(form) != null)
{
//filter line and column numbers
IPersistentMap newMeta = ((IObj) form).meta().without(LINE_KEY).without(COLUMN_KEY).without(END_LINE_KEY).without(END_COLUMN_KEY);
IPersistentMap newMeta = ((IObj) form).meta().without(LINE_KEY).without(COLUMN_KEY);
if(newMeta.count() > 0)
return RT.list(WITH_META, ret, syntaxQuote(((IObj) form).meta()));
}
Expand Down Expand Up @@ -1312,8 +1308,6 @@ public Object invoke(Object reader, Object leftparen, Object opts, Object pendin
Object meta = RT.meta(s);
meta = RT.assoc(meta, LINE_KEY, RT.get(meta, LINE_KEY, line));
meta = RT.assoc(meta, COLUMN_KEY, RT.get(meta,COLUMN_KEY, column));
meta = RT.assoc(meta, END_LINE_KEY, RT.get(meta, END_LINE_KEY, ((LineNumberingPushbackReader) r).getLineNumber()));
meta = RT.assoc(meta, END_COLUMN_KEY, RT.get(meta,END_COLUMN_KEY, ((LineNumberingPushbackReader) r).getColumnNumber()-1));
return s.withMeta((IPersistentMap)meta);
}
else
Expand Down

0 comments on commit 0c74f22

Please sign in to comment.