Skip to content

Commit ef0d1a4

Browse files
committed
remove dead code
1 parent 2f94d46 commit ef0d1a4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

web_playground/src/syntax.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import { languages } from "monaco-editor"
22
import { arrayUnion, escapeRegex, mapsToArray } from "./util"
33

4-
const uniqueCharacters = (str: string) => {
5-
const unique = new Set<string>()
6-
for (const char of str) {
7-
unique.add(char)
8-
}
9-
return Array.from(unique).join("")
10-
}
114

125
export const registerSyntax = async (syntax_runtime: any, syntax_typesystem: any) => {
136

@@ -35,7 +28,6 @@ export const registerSyntax = async (syntax_runtime: any, syntax_typesystem: any
3528
syntax_typesystem.PrimaryBinaryOperators,
3629
]),
3730

38-
//symbols: new RegExp("[" + escapeRegex(uniqueCharacters(arrayUnion(syntax_runtime.Symbols, syntax_typesystem.Symbols).join(""))) + "]+"),
3931
symbols: /[=><!~?:&|+\-*\/\^%]+/,
4032

4133
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,

0 commit comments

Comments
 (0)