Skip to content

Commit

Permalink
Use fully qualified file names to import simple-mode
Browse files Browse the repository at this point in the history
FIX: Fix internal imports to include the extension in the path.

Closes codemirror/dev#522
  • Loading branch information
marijnh committed Jun 24, 2021
1 parent bea73b1 commit 2d69f0e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mode/dockerfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {simpleMode} from "./simple-mode"
import {simpleMode} from "./simple-mode.js"

var from = "from";
var fromRegex = new RegExp("^(\\s*)\\b(" + from + ")\\b", "i");
Expand Down
2 changes: 1 addition & 1 deletion mode/factor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {simpleMode} from "./simple-mode"
import {simpleMode} from "./simple-mode.js"

export const factor = simpleMode({
start: [
Expand Down
2 changes: 1 addition & 1 deletion mode/nsis.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {simpleMode} from "./simple-mode"
import {simpleMode} from "./simple-mode.js"
export const nsis = simpleMode({
start:[
// Numbers
Expand Down
2 changes: 1 addition & 1 deletion mode/rust.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {simpleMode} from "./simple-mode"
import {simpleMode} from "./simple-mode.js"

export const rust = simpleMode({
start: [
Expand Down
2 changes: 1 addition & 1 deletion mode/wast.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {simpleMode} from "./simple-mode"
import {simpleMode} from "./simple-mode.js"
export const wast = simpleMode({
start: [
{regex: /[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/, token: "number"},
Expand Down

0 comments on commit 2d69f0e

Please sign in to comment.