diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c182ba1 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-node", + "request": "launch", + "name": "Launch Program", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}\\lib\\index.js", + "outFiles": [ + "${workspaceFolder}/**/*.js" + ] + } + ] +} \ No newline at end of file diff --git a/src/rules/tokenise.ts b/src/rules/tokenise.ts index 04d2b82..4dd55f9 100644 --- a/src/rules/tokenise.ts +++ b/src/rules/tokenise.ts @@ -54,7 +54,6 @@ function regexMatcher(regex: string | RegExp, type: TokenTypes): Matcher { const matcher = [ regexMatcher(/^\s+/, "space"), - regexMatcher(/^(\/\*)(.|\s)*?(\*\/)/g, "comment"), regexMatcher(/^\/\/.+/, "comment"), regexMatcher(/^#.+/, "comment"), regexMatcher(/^".*?"/, "string"),