@ironm00n/pyret-lang 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironm00n/pyret-lang",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "The Pyret programming language",
5
5
  "main": "build/phase0/main-wrapper.js",
6
6
  "directories": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "repository": {
48
48
  "type": "git",
49
- "url": "git://github.com/brownplt/pyret-lang"
49
+ "url": "git://github.com/ironm00n/pyret-lang"
50
50
  },
51
51
  "keywords": [
52
52
  "programming",
@@ -58,9 +58,9 @@
58
58
  "author": "Joe Gibbs Politz",
59
59
  "license": "Apache-2.0",
60
60
  "bugs": {
61
- "url": "https://github.com/brownplt/pyret-lang/issues"
61
+ "url": "https://github.com/ironm00n/pyret-lang/issues"
62
62
  },
63
- "homepage": "https://github.com/brownplt/pyret-lang",
63
+ "homepage": "https://github.com/ironm00n/pyret-lang",
64
64
  "devDependencies": {
65
65
  "http-server": "^14.1.1",
66
66
  "jest": "^30.0.4"
@@ -233,11 +233,11 @@ fun ensure-distinct-lines(loc :: Loc, prev-is-template :: Boolean, stmts :: List
233
233
  | link(first, rest) =>
234
234
  cases(Loc) loc:
235
235
  | builtin(_) => ensure-distinct-lines(first.l, A.is-s-template(first), rest)
236
- | srcloc(_, _, _, _, end-line1, _, _) =>
236
+ | srcloc(end-source1, _, _, _, end-line1, _, _) =>
237
237
  cases(Loc) first.l block:
238
238
  | builtin(_) => ensure-distinct-lines(loc, prev-is-template, rest) # No need to preserve builtin() locs
239
- | srcloc(_, start-line2, _, _, _, _, _) =>
240
- when (end-line1 == start-line2):
239
+ | srcloc(start-source2, start-line2, _, _, _, _, _) =>
240
+ when (end-line1 == start-line2) and (end-source1 == start-source2):
241
241
  if A.is-s-template(first) and prev-is-template:
242
242
  add-error(C.template-same-line(loc, first.l))
243
243
  else if not(A.is-s-template(first)) and not(prev-is-template):