Skip to content

Commit a28a86a

Browse files
Wolfram: Removed unmatchable punctuation variant (#3133)
1 parent 91060fd commit a28a86a

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

components/prism-wolfram.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Prism.languages.wolfram = {
77
},
88
'keyword': /\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,
99
'context': {
10-
pattern: /\w+`+\w*/,
10+
pattern: /\b\w+`+\w*/,
1111
alias: 'class-name'
1212
},
1313
'blank': {
@@ -21,7 +21,7 @@ Prism.languages.wolfram = {
2121
'boolean': /\b(?:False|True)\b/,
2222
'number': /(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,
2323
'operator': /\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
24-
'punctuation': /[\|{}[\];(),.:]/
24+
'punctuation': /[{}[\];(),.:]/
2525
};
2626

2727
Prism.languages.mathematica = Prism.languages.wolfram;

components/prism-wolfram.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ } [ ] ( )
2+
, ; . :
3+
4+
----------------------------------------------------
5+
6+
[
7+
["punctuation", "{"],
8+
["punctuation", "}"],
9+
["punctuation", "["],
10+
["punctuation", "]"],
11+
["punctuation", "("],
12+
["punctuation", ")"],
13+
14+
["punctuation", ","],
15+
["operator", ";"],
16+
["punctuation", "."],
17+
["punctuation", ":"]
18+
]

0 commit comments

Comments
 (0)