Fix highlighting of operator <:
This commit is contained in:
parent
739ca0fd42
commit
e9d70c861a
1 changed files with 4 additions and 4 deletions
|
@ -12,6 +12,10 @@
|
||||||
mode
|
mode
|
||||||
`((,(let ((OR "\\|"))
|
`((,(let ((OR "\\|"))
|
||||||
(concat "\\(" ; stolen `matlab.el' operators first
|
(concat "\\(" ; stolen `matlab.el' operators first
|
||||||
|
;; `:` defines a symbol in Julia and must not be highlighted
|
||||||
|
;; as an operator. The only operators that start with `:` are
|
||||||
|
;; `:<` and `::`. This must be defined before `<`.
|
||||||
|
"[:<]:" OR
|
||||||
"[<>]=?" OR
|
"[<>]=?" OR
|
||||||
"\\.[/*^']" OR
|
"\\.[/*^']" OR
|
||||||
"===" OR
|
"===" OR
|
||||||
|
@ -20,10 +24,6 @@
|
||||||
"\\<xor\\>" OR
|
"\\<xor\\>" OR
|
||||||
"[-+*\\/^&|$]=?" OR ; this has to come before next (updating operators)
|
"[-+*\\/^&|$]=?" OR ; this has to come before next (updating operators)
|
||||||
"[-^&|*+\\/~]" OR
|
"[-^&|*+\\/~]" OR
|
||||||
;; `:` defines a symbol in Julia and must not be highlighted
|
|
||||||
;; as an operator. The only operators that start with `:` are
|
|
||||||
;; `:<` and `::`.
|
|
||||||
"[:<]:" OR
|
|
||||||
;; Julia variables and names can have `!`. Thus, `!` must be
|
;; Julia variables and names can have `!`. Thus, `!` must be
|
||||||
;; highlighted as a single operator only in some
|
;; highlighted as a single operator only in some
|
||||||
;; circumstances. However, full support can only be
|
;; circumstances. However, full support can only be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue