Skip to content

Commit

Permalink
Remove C_NULL from constants and add Cvoid
Browse files Browse the repository at this point in the history
C_NULL is the only highlighted constant exported from Base. In a
baremodule, it is undefined (and therefore can't be assumed to be a
constant).

Cvoid is a constant alias for nothing exported from Core.
  • Loading branch information
non-Jedi committed Jul 13, 2020
1 parent a31868d commit 549a7b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion julia-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@
(cons julia-macro-regex ''julia-macro-face)
(cons
(regexp-opt
'("true" "false" "C_NULL" "Inf" "NaN" "Inf32" "NaN32" "nothing" "undef" "missing")
;; constants defined in Core plus true/false
'("true" "false" "Cvoid" "Inf" "NaN" "Inf32" "NaN32" "nothing" "undef" "missing")
'symbols)
'font-lock-constant-face)
(cons "ccall" 'font-lock-builtin-face)
Expand Down

0 comments on commit 549a7b4

Please sign in to comment.