Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Julia constants that are not exported by default #2601

Merged
merged 2 commits into from Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/prism-julia.js
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
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