Skip to content

Commit 093c817

Browse files
authored
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/languages/julia/constant_feature.test

Lines changed: 2 additions & 11 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy