main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
982 bytes
|
Line | |
---|
1 | Prism.languages.jsstacktrace = {
|
---|
2 | 'error-message': {
|
---|
3 | pattern: /^\S.*/m,
|
---|
4 | alias: 'string'
|
---|
5 | },
|
---|
6 |
|
---|
7 | 'stack-frame': {
|
---|
8 | pattern: /(^[ \t]+)at[ \t].*/m,
|
---|
9 | lookbehind: true,
|
---|
10 | inside: {
|
---|
11 | 'not-my-code': {
|
---|
12 | pattern: /^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,
|
---|
13 | alias: 'comment'
|
---|
14 | },
|
---|
15 |
|
---|
16 | 'filename': {
|
---|
17 | pattern: /(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,
|
---|
18 | lookbehind: true,
|
---|
19 | alias: 'url'
|
---|
20 | },
|
---|
21 |
|
---|
22 | 'function': {
|
---|
23 | pattern: /(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,
|
---|
24 | lookbehind: true,
|
---|
25 | inside: {
|
---|
26 | 'punctuation': /\./
|
---|
27 | }
|
---|
28 | },
|
---|
29 |
|
---|
30 | 'punctuation': /[()]/,
|
---|
31 |
|
---|
32 | 'keyword': /\b(?:at|new)\b/,
|
---|
33 |
|
---|
34 | 'alias': {
|
---|
35 | pattern: /\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,
|
---|
36 | alias: 'variable'
|
---|
37 | },
|
---|
38 |
|
---|
39 | 'line-number': {
|
---|
40 | pattern: /:\d+(?::\d+)?\b/,
|
---|
41 | alias: 'number',
|
---|
42 | inside: {
|
---|
43 | 'punctuation': /:/
|
---|
44 | }
|
---|
45 | },
|
---|
46 |
|
---|
47 | }
|
---|
48 | }
|
---|
49 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.