Skip to content

Commit

Permalink
Julia: Removed constants that are not exported by default (#2601)
Browse files Browse the repository at this point in the history
* Remove Julia constants that are not exported by default

* Julia: build and fix test
  • Loading branch information
knuesel authored Oct 23, 2020
1 parent df922d9 commit 093c817
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion components/prism-julia.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ Prism.languages.julia = {
'operator': /&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,
'punctuation': /::?|[{}[\]();,.?]/,
// https://docs.julialang.org/en/v1/base/numbers/#Base.im
'constant': /\b(?:(?:NaN|Inf)(?:16|32|64)?|im|pi|e|catalan|eulergamma|golden)\b|[πℯγφ]/
'constant': /\b(?:(?:NaN|Inf)(?:16|32|64)?|im|pi)\b|[πℯ]/
};
2 changes: 1 addition & 1 deletion components/prism-julia.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 2 additions & 11 deletions tests/languages/julia/constant_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ Inf Inf16 Inf32 Inf64

im
pi π
e ℯ
catalan
eulergamma γ
golden φ

----------------------------------------------------

Expand All @@ -23,13 +20,7 @@ golden φ
["constant", "im"],
["constant", "pi"],
["constant", "π"],
["constant", "e"],
["constant", "ℯ"],
["constant", "catalan"],
["constant", "eulergamma"],
["constant", "γ"],
["constant", "golden"],
["constant", "φ"]
["constant", "ℯ"]
]

----------------------------------------------------
Expand Down

0 comments on commit 093c817

Please sign in to comment.