From 2c5e6d54481caac6a1da2af2e992aedb1aa01286 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 2 Mar 2018 14:09:31 +0100 Subject: [PATCH] Make code compile --- src/csp.ts | 106 +++++++++++++++++++++++++++++----------------------- test/all.js | 3 +- 2 files changed, 62 insertions(+), 47 deletions(-) diff --git a/src/csp.ts b/src/csp.ts index d20787a2..5225bd89 100644 --- a/src/csp.ts +++ b/src/csp.ts @@ -1,47 +1,61 @@ -// Create your own language definition here -// You can safely look at other samples without losing modifications. -// Modifications are not saved on browser refresh/close though -- copy often! -return { - // Set defaultToken to invalid to see what you do not tokenize yet - // defaultToken: 'invalid', - keywords: [], - typeKeywords: [], - operators: [], - symbols: /[=>{ + // Set defaultToken to invalid to see what you do not tokenize yet + // defaultToken: 'invalid', + keywords: [], + typeKeywords: [], + tokenPostfix: '.csp', + operators: [], + symbols: /[=>