2020-04-03 02:59:05 +00:00
|
|
|
//
|
|
|
|
// main.swift
|
|
|
|
// jstest
|
|
|
|
//
|
|
|
|
// Created by Shadowfacts on 4/2/20.
|
|
|
|
// Copyright © 2020 Shadowfacts. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2020-04-05 17:50:00 +00:00
|
|
|
let source = "[1 + 2, 3,]"
|
2020-04-05 15:54:22 +00:00
|
|
|
let highlighter = JavaScriptHighlighter(text: source)
|
|
|
|
highlighter.debug = true
|
|
|
|
highlighter.highlight()
|