Skip to content

Commit 093c817

Browse files
authoredOct 23, 2020
Julia: Removed constants that are not exported by default (#2601)
* Remove Julia constants that are not exported by default * Julia: build and fix test
1 parent df922d9 commit 093c817

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed
 

‎components/prism-julia.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Prism.languages.julia = {
2727
'operator': /&&|\|\||[-+*^%÷&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~']/,
2828
'punctuation': /::?|[{}[\]();,.?]/,
2929
// https://docs.julialang.org/en/v1/base/numbers/#Base.im
30-
'constant': /\b(?:(?:NaN|Inf)(?:16|32|64)?|im|pi|e|catalan|eulergamma|golden)\b|[πγφ]/
30+
'constant': /\b(?:(?:NaN|Inf)(?:16|32|64)?|im|pi)\b|[π]/
3131
};

‎components/prism-julia.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tests/languages/julia/constant_feature.test

+2-11
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ Inf Inf16 Inf32 Inf64
33

44
im
55
pi π
6-
e ℯ
7-
catalan
8-
eulergamma γ
9-
golden φ
6+
107

118
----------------------------------------------------
129

@@ -23,13 +20,7 @@ golden φ
2320
["constant", "im"],
2421
["constant", "pi"],
2522
["constant", "π"],
26-
["constant", "e"],
27-
["constant", "ℯ"],
28-
["constant", "catalan"],
29-
["constant", "eulergamma"],
30-
["constant", "γ"],
31-
["constant", "golden"],
32-
["constant", "φ"]
23+
["constant", "ℯ"]
3324
]
3425

3526
----------------------------------------------------

0 commit comments

Comments
 (0)
Please sign in to comment.