<commit_before>;;; lang/julia/config.el

(use-package julia-mode
  :mode "\\.jl$"
  :interpreter "julia"
  :config
  (set! :repl 'julia-mode #'+julia/repl))
<commit_msg>lang/julia: stea--borrow matlab.el's fontification of math operators<commit_after>;;; lang/julia/config.el

(use-package julia-mode
  :mode "\\.jl$"
  :interpreter "julia"
  :config
  (set! :repl 'julia-mode #'+julia/repl)

  ;; Borrow matlab.el's fontification of math operators
  ;; From <https://ogbe.net/emacsconfig.html>
  (font-lock-add-keywords
   'julia-mode
   `((,(let ((OR "\\|"))
         (concat "\\(" ;; stolen `matlab.el' operators first
                 "[<>!]=?" OR
                 "\\.[/*^']" OR
                 "==" OR
                 "=>" OR
                 "\\<xor\\>" OR
                 "[-+*\\/^&|$]=?" OR ;; this has to come before next (updating operators)
                 "[-!^&|*+\\/~:]" OR
                 ;; more extra julia operators follow
                 "[%$]" OR
                 ;; bitwise operators
                 ">>>" OR ">>" OR "<<" OR
                 ">>>=" OR ">>" OR "<<" OR
                 ;; comparison
                 "[<>!]=?" OR
                 "\\)"))
      1 font-lock-type-face))))

{'fraction_non_alphanumeric': 0.2074074074074074, 'fraction_numerical': 0.0008230452674897119, 'mean_word_length': 1.5927505330490406, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7561326', 'n_tokens_mistral': 430, 'n_tokens_neox': 410, 'n_words': 83}