branch: elpa/julia-mode
commit 549a7b4587bcb4c196ae83e0c5eeeb5fb50a2e26
Author: Adam Beckmeyer <adam_...@thebeckmeyers.xyz>
Commit: Adam Beckmeyer <adam_...@thebeckmeyers.xyz>

    Remove C_NULL from constants and add Cvoid
    
    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.
---
 julia-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/julia-mode.el b/julia-mode.el
index 31831d0..5c5c8f8 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -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)

Reply via email to