Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Julia.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,10 @@ contexts:
(?:e[-+]?\d(?:_?\d)*)? # Any of the above followed by e+123 or similar, for scientific notation.
)
scope: constant.numeric.julia
push: after-expression
push:
- match: (?:(?:true|false|missing|ℯ|pi|π|im|NaN|NaN16|NaN32|NaN64|Inf|Inf16|Inf32|Inf64)\b)?
scope: constant.language.julia
set: after-expression
- match: \b(true|false|nothing|missing|ℯ|pi|π|im|undef|NaN|NaN16|NaN32|NaN64|Inf|Inf16|Inf32|Inf64|ARGS|C_NULL|ENDIAN_BOM|ENV|LOAD_PATH|PROGRAM_FILE|STDERR|STDIN|STDOUT|VERSION)\b
scope: constant.language.julia
push: after-expression
Expand Down
3 changes: 3 additions & 0 deletions syntax_test_julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
2e
# ^ constant.numeric
# ^ meta.generic-name
2pi
# ^ constant.numeric
# ^^ constant.language
2e2
# ^^^ constant.numeric
e+2
Expand Down